Re: Launch AppleScripts without utilizing the WindowServer
Re: Launch AppleScripts without utilizing the WindowServer
- Subject: Re: Launch AppleScripts without utilizing the WindowServer
- From: Andrew Oliver <email@hidden>
- Date: Fri, 08 Aug 2003 10:36:36 -0700
For whatever reason, osascripts do want to connect to the WindowServer and
you can't do that unless you're the user who 'owns' the WindowServer.
The exception to this is root, who can launch any AppleScript, even if no
user is logged in. Therefore, try running the script as root (via sudo).
Andrew
:)
On 8/8/03 1:21 AM, "Brendon Bruns" <email@hidden> wrote:
>
Hello!
>
>
I am trying to launch a very simple script using osascript that does not
>
require ANY GUI interaction. It simply launches, does its thing, and quits.
>
It works just fine if you launch it from the user who is physically logged
>
onto the machine itself (the one who is currently running WindowServer).
>
>
However...if I try to launch the script from a user who is not running
>
WindowServer (Say I used SSH and logged into the box) it refuses to run and
>
I get an error about a lack of connection to the default WindowServer.
>
>
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?
>
>
Thank You!
>
Brendon Bruns
>
_______________________________________________
>
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.
_______________________________________________
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.