• 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
Using NSSupportsSuddenTermination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSSupportsSuddenTermination


  • Subject: Using NSSupportsSuddenTermination
  • From: Tom Robinson <email@hidden>
  • Date: Mon, 30 Nov 2009 20:23:44 +1300

Hi guys,

I have a small AppleScript application which stays running in a repeat loop while the user is logged in.  I'd like to hook into Leopard's Sudden Termination so it quits quickly when said user logs out.

e.g.:

repeat
	do shell script "logger 'hi'"
	delay 2
end repeat

I've tried adding NSSupportsSuddenTermination to the application's Info.plist but it seems to be ignored—Activity Monitor still says No.

Here's what I added:

[…]
	<key>LSRequiresCarbon</key>
	<true/>
	<key>NSSupportsSuddenTermination</key>
	<true/>
	<key>WindowState</key>
	<dict>
[…]

Have I missed something?

Snow 10.6.2

Ta.

 _______________________________________________
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: Using NSSupportsSuddenTermination
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Moving
  • Next by Date: Re: Changing File Permissions
  • Previous by thread: Re: Changing File Permissions
  • Next by thread: Re: Using NSSupportsSuddenTermination
  • Index(es):
    • Date
    • Thread