Re: Command line service tool
Re: Command line service tool
- Subject: Re: Command line service tool
- From: Ron Fleckner <email@hidden>
- Date: Sat, 16 Apr 2005 11:55:52 +1000
On 14/04/2005, at 4:00 AM, John Timmer wrote:
Apple indicates that it's possible to make a GUI-free service, but I
haven't
found documentation that would indicate how to go about this. Some of
the
service info is normally contained in a bundle, but command line tools
don't
normally have bundles. Also, does one create a runloop, etc.?
Alternately, I guess I could create a standard application, delete the
window and menu from its nib, and set LSUIElement to 1, and then just
handle
things as detailed in the Apple docs. Is this a better way to go about
this?
Cheers,
JT
Hi, I'm not sure if you've received a reply on this as I'm a few issues
behind in reading my digest version of this list, so sorry if you've
already found a solution. This is how I did it:
In your bundle's Info.plist, add the following key/value:
<key>NSBGOnly</key>
<string>1</string>
It worked for me.
Ron Fleckner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden