AppleScript timeouts aren't controllable by Indigo. However, you can add timeouts to the script as well:
- Code: Select all
try
with timeout of 10 seconds
tell application "Whatever"
# Do whatever processing you want here
end tell
end timeout
on error number errNum
# this is not totally necessary, but a timeout will cause an error to be thrown
# and you can catch here and do any cleanup processing
end try
This is one way to protect embedded AppleScripts from hanging up the server. However, @kw123 is generally right - if you have a script that talks to something else, and particularly if that something else is on the network, it's usually a much better idea to save your script in an external file and execute it that way - those scripts are run in their own processes so it doesn't matter if it gets stuck, etc., the main server process won't get held up.