Re: Quit application script when closes the window
Re: Quit application script when closes the window
- Subject: Re: Quit application script when closes the window
- From: "Jeremy W. Sherman" <email@hidden>
- Date: Wed, 22 Apr 2009 23:10:37 -0400
In Application.applescript, place:
on should quit after last window closed theObject
return true
end should quit after last window closed
You'll find that in the Currency Converter AppleScript Studio example application.
—Jeremy
P.S.
email@hidden could probably do a lot more to answer any further questions you might have working with AppleScript Studio.
On Wed, Apr 22, 2009 at 3:58 AM, Jose Gil
<email@hidden> wrote:
I have a simple application that displays a dialog and three buttons with diferent functions.
The problem occurs because if you click the close window button (red button on title bar), the window closes but the application keeps running without the possibility of closing unless forced to exit.
Any idea as to close automatically when the application closes the window?
Thanks.
Jose
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden