• 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
Faceless background app that uses NSAppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Faceless background app that uses NSAppleScript


  • Subject: Faceless background app that uses NSAppleScript
  • From: Scott Ribe <email@hidden>
  • Date: Thu, 16 Oct 2008 11:15:28 -0600
  • Thread-topic: Faceless background app that uses NSAppleScript

I need to write an app whose purpose is to drive other apps, using
NSAppleScript. No UI is needed. But I'm unclear on what kind of environment
needs to be set up in order for NSAppleScript to work. I suspect it needs at
least NSRunLoop event processing; I wonder if it might also need an
NSApplication around.

Past use of NSAppleScript has revealed that it's somewhat "quirky" about
event handling, in that what looks like a blocking synchronous call
(executeAndReturnError), seems to allow the event loop to keep processing
while it's waiting for a response.

And if it's too much of a pain in the neck, I'll just live with what I
already know how to do easily: a "GUI" that consists of a status window and
a "Quit" menu item ;-)

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Faceless background app that uses NSAppleScript
      • From: Jason Coco <email@hidden>
    • Re: Faceless background app that uses NSAppleScript
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: Re: How to get icon of special folder (like /Applications or /Library)?
  • Next by Date: Re: how to complete c/s app
  • Previous by thread: Resize the NSCollectionViewItem's view
  • Next by thread: Re: Faceless background app that uses NSAppleScript
  • Index(es):
    • Date
    • Thread