Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Andrew Oliver <email@hidden>
- Date: Tue, 15 Nov 2005 17:41:55 -0800
On 11/15/05 3:46 PM, "Malcolm Fitzgerald" <email@hidden> wrote:
> I'm having trouble getting cron to perform an applescript. I get the
> message below in the mail. What is it trying to tell me?
>
[snip]
>
> INIT_Processeses(), could not establish the default connection to the
> WindowServer.
>
You AppleScript tried to attach to the UI server but it isn't permitted to
do so, presumably because the account in question was not logged in at the
time.
There are some very specific issues about attaching to WindowServer, and
AppleScripts seem to try to attach even when there's no apparent reason to
do so (e.g. no user interaction required).
Your solution is to either ensure you're logged in at the time the script
runs, or add the script to the root crontab (root can attach to the
WindowServer even when it isn't logged in).
Andrew
:)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >(no subject) (From: Malcolm Fitzgerald <email@hidden>) |