Application Bundle won't quit at Shutdown
Application Bundle won't quit at Shutdown
- Subject: Application Bundle won't quit at Shutdown
- From: email@hidden
- Date: Sat, 12 Dec 2009 15:23:27 -0800
We have an AppleScript Application Bundle here that checks our Mail accounts at different interval's. To get it to quit using Cmd-Q, we had to add this code:
... on quit set theCommand to "ps axuww | grep '" & gScriptName & "' | grep -v grep | awk '{ print $2 }'" set myPID to do shell script theCommand do shell script "kill " & myPID continue quit end quit
Unfortunately, it refuses to quit when choosing Shutdown or Log Out. Is there a trick to doing this? If you need more info, just let me know. |
_______________________________________________
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