• 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
Re: Folder Action: Move and then open after download completes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Folder Action: Move and then open after download completes (From: Nick Hearn <email@hidden>)

  • Prev by Date: Re: Folder Action: Move and then open after download completes
  • Next by Date: Re: Print to PDF
  • Previous by thread: Re: Folder Action: Move and then open after download completes
  • Next by thread: InDesign 'crop images to frames'
  • Index(es):
    • Date
    • Thread