Re: Help! Photoshop Applescript times out
Re: Help! Photoshop Applescript times out
- Subject: Re: Help! Photoshop Applescript times out
- From: Kai <email@hidden>
- Date: Tue, 14 Jan 2003 00:43:06 +0000
on Mon, 13 Jan 2003 14:41:59 -0600, Kenton Muschenheim
<email@hidden> wrote:
>
What is the best way to avoid the "Apple Event Timed Out" error during a
>
Photoshop Applescript? The script times out while opening a big 200 mb file
>
before getting to the resizing etc
Normally, if a command to an application takes longer than a minute to
complete, AppleScript stops running the script and returns a "timed out"
error. However, you can use 'with timeout' statements to change how long
AppleScript waits before stopping execution of a script.
To avoid most timeouts, it makes sense to allow a long period:
with timeout of 1000000 seconds
-- perform lengthy operations
end timeout
--
Kai
_______________________________________________
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.