• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Photoshop Apple Event timeouts...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Photoshop Apple Event timeouts...
      • From: Jack Crombie <email@hidden>
References: 
 >Photoshop Apple Event timeouts... (From: Jack Crombie <email@hidden>)

  • Prev by Date: Photoshop Apple Event timeouts...
  • Next by Date: Basic graphs
  • Previous by thread: Photoshop Apple Event timeouts...
  • Next by thread: Re: Photoshop Apple Event timeouts...
  • Index(es):
    • Date
    • Thread