Timeout block question
Timeout block question
- Subject: Timeout block question
- From: Jim Brandt <email@hidden>
- Date: Wed, 11 Feb 2009 13:03:22 -0600
I have a with timeout block question.
Is there a failure option to the with timeout block?
I wish to download a file from the web using cURL.
If I enclose this in a with timeout block, how do I tell
if it failed?
cmd contains the curl command I wish to execute
with timeout of 15 seconds
do shell script cmd
end timeout
Is there some action I can take if the 15 seconds expires without
downloading the file? Do I have to test for the existance of the file
in order to do this? Or is there a better way?
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden