Re: Script server as faceless background application?
Re: Script server as faceless background application?
- Subject: Re: Script server as faceless background application?
- From: Alex Robinson <email@hidden>
- Date: Wed, 29 May 2002 18:59:03 +0100
>
Yes, Use a resource editor to edit the plst resource inside the
>
application and add the ...
>
>
<key>NSUIElement</key>
>
<string>1</string>
>
... key value pair to it.
James Sentman also replied offlist with the same explanation.
He also sent me a copy of a RealBasic app he wrote that does it for you -
you simply drag your scripts on to and hey presto, it's done (dragging them
again makes them unfaceless). And it works very nicely indeed.
He had been meaning to release it when he had time and now my prodding has
given him the necessary impetus:
http://www.sentman.com/backgrounder/
>
I'm not sure what your <key>LSUIElement</key>
LSUIElement (LS as in Launch Services) replaces the NSUIElement tag (NS as
in NextStep) which has been officially deprecated by Apple. (or so I have
been told)
>
Make sure you make a way to quit it, or you'll have to kill it's PID.
I don't think that's much of a problem. Off the top of my head...
1. From the command line:
kill -9 `ps -cx | grep "ScriptName" | grep -v "grep" | cut -c 1-6`
2. Double click on the app in ProcessViewer
3. or in AS:
tell application "ScriptName"
quit
end tell
Mac OSX - the perl of platforms :)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.