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.
Add a applicationShouldTerminateAfterLastWindowClosed: method in your AppDelegate, for example:
on applicationShouldTerminateAfterLastWindowClosed_(sender)
return true
end applicationShouldTerminateAfterLastWindowClosed_
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With