• 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: background app won't quit.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: background app won't quit.


  • Subject: Re: background app won't quit.
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 19 Dec 2005 14:58:24 -0600

Andy Huntington asked ...
I have the following script which I have running in the background.
All the functionality is there: it looks for a disk, when it finds it
it copies the contents of a folder from the disk to the hard disk and
ejects said disk.

My problem comes when I want to quit the script. I have to force quit.
It makes my shutdown hang.

You have to have a quit handler. Somewhere in your idle handler you will use 'quit' (not return) at the point(s) where you want to stop running the script.


on quit
    -- do anything here you want just before quitting
    -- then
    continue quit
end quit
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: background app won't quit.
  • Next by Date: Finder Preferences
  • Previous by thread: Re: background app won't quit.
  • Next by thread: Finder Preferences
  • Index(es):
    • Date
    • Thread