• 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: Script server as faceless background application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Script server as faceless background application? (From: Paul Skinner <email@hidden>)

  • Prev by Date: Scripting Cumulus for file extraction...
  • Next by Date: Re: Script server as faceless background application?
  • Previous by thread: Re: Script server as faceless background application?
  • Next by thread: Re: Script server as faceless background application?
  • Index(es):
    • Date
    • Thread