• 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
Timeout value of "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Modeless Dialog?
  • Next by Date: Re: GETting the mailbox of a selected message
  • Previous by thread: Re: Modeless Dialog?
  • Next by thread: Creating a chart or graphic line...
  • Index(es):
    • Date
    • Thread