Re: Applescript errors
Re: Applescript errors
- Subject: Re: Applescript errors
- From: Malcolm Fitzgerald <email@hidden>
- Date: Sun, 25 Feb 2007 12:10:59 +1100
The second one is:
I have a script the runs just before midnight every day. It is
supposed to sweep
files out of a directory, if they exist, and do nothing if they don't.
When there are
no files in the directory, it is supposed to put up a dialog for a few
seconds saying
as much. However, since it runs at such a late hour, most of the time
the screen
is in power save mode and instead, I get an error saying:
The Applescript event has timed out.
Is there a test that can be run in Applescript to check for the power
save condition
to avoid this error. (I want the dialog because I also run it manually
from the script
menu).
You want to have it both ways. May I suggest that you write the results
out to a log file instead of throwing up a dialog box. When you are
there to watch you can have the log open in Console and watch from
there.
malcolm
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden