• 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
Re: How to get scripting to work without NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


  • Follow-Ups:
    • Re: How to get scripting to work without NSApplication
      • From: Jason Bobier <email@hidden>
References: 
 >How to get scripting to work without NSApplication (From: Jason Bobier <email@hidden>)

  • Prev by Date: How to get scripting to work without NSApplication
  • Next by Date: Re: HTML Notification
  • Previous by thread: How to get scripting to work without NSApplication
  • Next by thread: Re: How to get scripting to work without NSApplication
  • Index(es):
    • Date
    • Thread