Using NSSupportsSuddenTermination
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