• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quit application script when closes the window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Quit application script when closes the window (From: Jose Gil <email@hidden>)

  • Prev by Date: Closing Safari JavaScript alerts and other modal windows
  • Next by Date: Re: Apple Mail 3.5: Changing Mail Server Settings
  • Previous by thread: Quit application script when closes the window
  • Next by thread: Setting IMAP server in Mail does not stick...
  • Index(es):
    • Date
    • Thread