• 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: Folder Action script runs on file renaming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Action script runs on file renaming


  • Subject: Re: Folder Action script runs on file renaming
  • From: "John C. Welch" <email@hidden>
  • Date: Thu, 06 Dec 2007 16:21:18 -0600
  • Thread-topic: Folder Action script runs on file renaming

On 12/06/2007 16:13 PM, "Christopher Nebel" <email@hidden> wrote:

>> I have a folder action script that runs when items are added to the
>> folder.
>>
>> I just discovered that the script also runs when anything already in
>> the folder is renamed. I want to stop this.
>
> The basic rule for folder action scripts is to move the file out of
> the "hot" folder, if not immediately, then by the time the script
> finishes.  There are two reasons for this.  First is the one you've
> already found -- Folder Actions detects "new" items by name, so a
> renamed item is considered to be new.  Second is that in order to find
> the new items, it must scan all the items in the folder -- this is a
> technical limitation of the OS -- which can become a performance
> problem as items are allowed to pile up into the thousands.
>
> Short version: move first, then rename.

Speaking of which, did Mac OS X 10.5 ever do anything about the issues where
an FA will start acting on a big file being moved into a folder before the
file has been completely moved?


--
 "You humans call this thing a 'cursor' and you  move it with 'mouse'! Bah!
A Klingon would not use such  a device. We have a Karaghht-Gnot - which is
best  translated as "An Aiming Daggar of 16x16 pixels" and  we move it using
a Gshnarrrf which is a creature from  the Klingon homeworld which posesses
just one,  (disproportionately large) testicle...which it rubs along  the
ground...a fearsome creature indeed.


 _______________________________________________
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

References: 
 >Re: Folder Action script runs on file renaming (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Next by Date: Re: What makes appleScript so easy
  • Previous by thread: Re: Folder Action script runs on file renaming
  • Next by thread: Re: Folder Action script runs on file renaming
  • Index(es):
    • Date
    • Thread