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
Add a applicationShouldTerminateAfterLastWindowClosed: method in your AppDelegate, for example:
on applicationShouldTerminateAfterLastWindowClosed_(sender) return true end applicationShouldTerminateAfterLastWindowClosed_