• 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
Application Bundle won't quit at Shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

Thanks,
Ted
 _______________________________________________
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

  • Follow-Ups:
    • Re: Application Bundle won't quit at Shutdown
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Missing something obvious
  • Next by Date: Re: Missing something obvious
  • Previous by thread: Re: Missing something obvious
  • Next by thread: Re: Application Bundle won't quit at Shutdown
  • Index(es):
    • Date
    • Thread