• 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: Launch AppleScripts without utilizing the WindowServer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch AppleScripts without utilizing the WindowServer


  • Subject: Re: Launch AppleScripts without utilizing the WindowServer
  • From: Lewis Butler <email@hidden>
  • Date: Fri, 8 Aug 2003 12:03:31 -0600

On Friday, 08 August 2003, at 02:21, Brendon Bruns wrote:
Why does AppleScript require the WindowServer to be running, even if there
is no GUI interaction as part of the script? How can I force the script to
run without utilizing the WindowServer?

I'm sure the answer to this is complicated, but the short answer is "It just does." You can't run a applescript from the CLI unless you are logged in.

However, there is a away around it:

sudo osascript -e "<your script here>"

--
Everybody hates a tourist, especially one who thinks it's all such a laugh. Yeah, and the chipstains and grease will come out in the bath. You will never understand how it feels to live your lif with no meaning or control, and with nowhere left to go. You are amazed that they exist, and they burn so bright whilst you can only wonder why.
_______________________________________________
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: 
 >Launch AppleScripts without utilizing the WindowServer (From: Brendon Bruns <email@hidden>)

  • Prev by Date: Re: Get a list of applications
  • Next by Date: Re: "Open this URL in the default browser"?
  • Previous by thread: Re: Launch AppleScripts without utilizing the WindowServer
  • Next by thread: Re: Launch AppleScripts without utilizing the WindowServer
  • Index(es):
    • Date
    • Thread