Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get scripting to work without NSApplication



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)


References: 
 >How to get scripting to work without NSApplication (From: Jason Bobier <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.