I wrote an automator script called by an event on a folder. The idea is to convert some video files when I drop them on the folder. These files are stored on a network drive so I just drag them from one Finder window to another to quick the process. The script works and I have no problem with it.
However, I've noticed that the File Added event gets fired before the end of the copy from the network drive to the local drive with the script attached to it. It seems to get fired at the beginning of the copy, not at the end. The AppleScript starts with:
so in theory it should wait for the end of the copy, but it doesn't. Of course, my script gives me an error saying that the file is in use by OS X...
Has anybody had that problem when copying - not moving - a file to a folder with a Folder Event?
However, I've noticed that the File Added event gets fired before the end of the copy from the network drive to the local drive with the script attached to it. It seems to get fired at the beginning of the copy, not at the end. The AppleScript starts with:
Code:
on adding folder items to this_folder after receiving added_items
Has anybody had that problem when copying - not moving - a file to a folder with a Folder Event?