Re: Folder Watcher issue
Re: Folder Watcher issue
- Subject: Re: Folder Watcher issue
- From: Doug McNutt <email@hidden>
- Date: Tue, 10 Apr 2007 19:13:02 -0600
At 10:47 +1000 4/11/07, Tim Mansour wrote:
>On 10/04/2007, at 12:20 am, AKnasinski wrote:
>>it seems that the folder action does not kick in if a file is deleted, and replaced by a new file with the same name thru non- finder methods (a java app is writing to the watched directory)
>
>Interestingly, I've been experiencing something similar.
>
>I have a situation where files are being uploaded to a server folder using curl, and the folder has a folder action script attached. The script sometimes doesn't pick up on a file that's uploaded and I can't quite debug under what circumstances files are being missed, but I've wondered if it has something to do with curl using a temporary file name and then renaming the file once upload is complete?
Finder is notorious for being slow to update when something in a window is changed behind its back. At one time a directory had to be open in Finder before files could be placed in a watched folder or the AppleScript would never get entered.
Tell window (somename) of application Finder to update every file.
might do some good if you can figure out how to get it executed. It certainly will update things that curl put in.
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
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