Timeout value of "do shell script"
Timeout value of "do shell script"
- Subject: Timeout value of "do shell script"
- From: Aaron Rosenblum <email@hidden>
- Date: Fri, 22 Oct 2004 12:03:43 -0400
Hi,
I have a command that basically does:
try
with timeout of 1200 seconds
set tiffInfo to do shell script "tiffutil -dump " & myPath & " | grep
Compression"
end timeout
on error errMsg number errNum from objErr partial result errList to
errClass
display dialog errMsg & ": " & errNum & return & "Source of error was:
" & objErr & return & "Here are any partial results: " & errList &
return & "If coercion failure it involved a coercion to: " & errClass &
" in compression test"
end try
However, I am reading some Applescript docs that say that you can only
adjust the timeout value for "applications targeted in tell blocks",
scripting addition commands that have application objects as
parameters, or scripting addition commands that are called inside of
tell statements that target other applications. Since I am using "do
shell script", what does this count as, if anything? I am concerned
that this shell operation may take a while to return, and may be
causing an error in my script.
thanks!
Aaron
_______________________________________________
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