Hey guys,
I’ev tried adding the fileisbusy addition to one of my scripts, and it just won’t seem to work.
Here’s what I did:
on adding folder items to pdfFolder after receiving added_items
       tell application "finder"
       activate
       repeat with I in added_items
           tell application "finder"
           set fileBusy to true 
           repeat while fileBusy 
           set fileBusy to fileIsBusy I 
           delay 1 
           end repeat
           display dialog "it works"
         end repeat
         end tell
end adding folder items to
I’ve tried adding both “file” and “alias” before “I”, but neither one will work.
The files coming into this folder are from another server, and they grow slowly as the server refreshes. The script picks up the file right away (before it’s finished), and gives an error message.
Any ideas, anyone?
Thanks!