• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Confounded by Folder Action Script (10.5.6) - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Confounded by Folder Action Script (10.5.6) - SOLVED
      • From: Rainer Standke <email@hidden>
References: 
 >Confounded by Folder Action Script (10.5.6) (From: David Glass <email@hidden>)
 >Re: Confounded by Folder Action Script (10.5.6) (From: Brian Christmas <email@hidden>)
 >Re: Confounded by Folder Action Script (10.5.6) - SOLVED (From: David Glass <email@hidden>)
 >Re: Confounded by Folder Action Script (10.5.6) - SOLVED (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Remote Apple Events and disappearing keychain passwords
  • Next by Date: Re: Confounded by Folder Action Script (10.5.6) - SOLVED
  • Previous by thread: Re: Confounded by Folder Action Script (10.5.6) - SOLVED
  • Next by thread: Re: Confounded by Folder Action Script (10.5.6) - SOLVED
  • Index(es):
    • Date
    • Thread