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: David Glass <email@hidden>
- Date: Tue, 28 Apr 2009 10:03:09 -0700
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden