Re: Cocoa from the command line?
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.