Re: Photoshop Apple Event timeouts...
Re: Photoshop Apple Event timeouts...
- Subject: Re: Photoshop Apple Event timeouts...
- From: kai <email@hidden>
- Date: Wed, 15 Mar 2006 09:23:29 +0000
On 14 Mar 2006, at 23:10, Jack Crombie wrote:
Any help changing the timeout length to something like 10 mins or
more would be helpfull because the script is a loop and i need to
run this process on every file in a directory.
Guten Tag, Jack. A timeout error usually occurs when execution of a
command, sent by AppleScript to an application, takes longer than the
current timeout limit. To extend the timeout limit, just wrap the
affected code in a 'with timeout' statement:
------------
with timeout of 10 * minutes seconds
(* do stuff that's timing out *)
end timeout
------------
If you really want to say "wait as long as it takes", then use a
longer timeout. Since the script will continue once the relevant
command has been executed, this won't extend the running time beyond
that required:
------------
with timeout of days seconds
(* do stuff that's timing out *)
end timeout
------------
For more details:
http://developer.apple.com/documentation/AppleScript/Conceptual/
AppleScriptLangGuide/AppleScript.c9.html
http://developer.apple.com/documentation/AppleScript/Conceptual/
AppleScriptLangGuide/AppleScript.ca.html
(The notes suggest that the default timeout is one minute - although,
these days, it's more like a couple of minutes.)
---
kai
_______________________________________________
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