Re: Folder Action: Move and then open after download completes
Re: Folder Action: Move and then open after download completes
- Subject: Re: Folder Action: Move and then open after download completes
- From: "John C. Welch" <email@hidden>
- Date: Tue, 06 Mar 2007 12:25:23 -0600
- Thread-topic: Folder Action: Move and then open after download completes
Title: Re: Folder Action: Move and then open after download completes
On 3/6/07 10:56, "Nick Hearn" <email@hidden> wrote:
repeat 20 times
try
open for access file x -- if this succeeds, the file is not busy.
close access result
exit repeat
on error -- file is busy
delay 3 -- times it out in 1 minute
end try
end repeat
That’s only going to open it for read access, which you can do even if the file is “busy”. Depending on the mechanism used to see if a file is “busy”, you may even be able to open it for write access.
As well, if the file is large, or taking a long time to download, it may in fact take longer than a minute.
--
"First in Asia"
1st Special Forces Group (Airborne)
_______________________________________________
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