3

I've created an AppleScript app in Xcode and I would like to know how to get the app to quit after the window is closed.

1 Answer 1

7

Add a applicationShouldTerminateAfterLastWindowClosed: method in your AppDelegate, for example:

on applicationShouldTerminateAfterLastWindowClosed_(sender) return true end applicationShouldTerminateAfterLastWindowClosed_ 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.