Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: background app won't quit.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: background app won't quit.



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.