• 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: Cocoa from the command line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa from the command line?


  • Subject: Re: Cocoa from the command line?
  • From: "b.bum" <email@hidden>
  • Date: Mon, 26 Jan 2004 15:58:39 -0800

On Jan 25, 2004, at 9:04 AM, Jens Bauer wrote:
I'd put it the other way 'round, actually: have the tool open the application if it's not already open. You can accomplish this with Apple Events as well. Anything an AppleScript can do, your tool could do with Apple Events.

OK, now I see! :)

Or make it even simpler.

If the App is not ever going to be running unless triggered by your web server or command line tool, then just invoke the app directly. As long as it is running as your user, it should have access to the Window Manager, etc, if I remember correctly.

Just like you can go to the command line and invoke '/Applications/TextEdit.app/Contents/MacOS/TextEdit', you could invoke the executable in your app wrapper from the command line.

That would eliminate the need to worry about some kind of IPC.

b.bum
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Cocoa from the command line? (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: iPhoto Library Info
  • Next by Date: NSComboBoxCell problems
  • Previous by thread: Re: Cocoa from the command line?
  • Next by thread: Re: Cocoa from the command line?
  • Index(es):
    • Date
    • Thread