Re: Confounded by Folder Action Script (10.5.6) - SOLVED
Re: Confounded by Folder Action Script (10.5.6) - SOLVED
- Subject: Re: Confounded by Folder Action Script (10.5.6) - SOLVED
- From: Rainer Standke <email@hidden>
- Date: Wed, 29 Apr 2009 09:42:48 -0700
I would be concerned with the folder action firing before the files in
question are actually completed, which could take a while in the case
of video files.
I have played with this myself, and I came to the conclusion that
running scripts could be interrupted by newly fired scripts which
execute first, then the rest of the first script runs. This can lead
to a lot of confusion...
Hope this helps,
Rainer
On Apr 28, 2009, at 10:03 , David Glass wrote:
In hindsight this makes sense, but I thought since I had specific
'file selection' code in the script, i.e. act on only X type files,
ignore Y type files, that the script would trigger but ignore the
new files, since they wouldn't be of the proper type.
Instead it gets weird with silent pauses, hangs, and other strange
behavior of the *original* execution of the script (rather than the
recursions), which I'm assuming is what you mean by 'spiral out of
control'.
On Apr 27, 2009, at 11:39 AM, Christopher Nebel wrote:
As a general rule, folder action scripts should never create or
rename items in the watched folder -- that counts as a new added
file, and the script will trigger again. At best, this is a drain
on performance; at worst, it causes your script to spiral out of
control.
--Chris Nebel
AppleScript Engineering
--
David Glass - Gray Matter Computing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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