Re: How to get scripting to work without NSApplication
Re: How to get scripting to work without NSApplication
- Subject: Re: How to get scripting to work without NSApplication
- From: Scott Anguish <email@hidden>
- Date: Mon, 10 Dec 2001 02:03:32 -0500
On Monday, December 10, 2001, at 01:05 AM, Jason Bobier wrote:
Hey folks, I have a Foundation/NSRunLoop based damon that I would like
to support the Required Suite in. Aren't we supposed to be doing this?
I've read all of the Cocoa/AppleScript docs, and it mentions that we
should support the Required Suite, but doesn't really tell how to do
it. Nor can I find the 'oapp' event mentioned anywhere in there.
BTW, I am trying to do this because it appears to be the only way to
perform some cleanup (for example, closing PGP's key database) when a
Cocoa based app is quit during shutdown.
Does it run only for a single user at a time? (that is, started by
the user upon their login, and with their user id?)
If so, why not just actually use NSApplication and make it a
faceless background app?
Otherwise, I'd see issues of security popping up (a daemon running
as root being scripted by a user that isn't.. and this seems like
something that could be done without actually having to edit the
application to exploit.. just by modifying the info.plist)