• 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 actions query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder actions query


  • Subject: Re: Folder actions query
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 8 Dec 2003 15:01:57 -0800

On Dec 8, 2003, at 12:44 PM, Walter Ian Kaye wrote:

At 11:58a -0800 12/08/2003, Christopher Nebel didst inscribe upon an electronic papyrus:

On Dec 8, 2003, at 7:57 AM, peter boardman wrote:

The Standard Additions dictionary says, about the 'adding folder items to' handler:

adding folder items to: Called after new items have been added to a folder, but only when the folder's window is open

But the handler runs when I save a new file into the folder, without having the window open. It also works if I drag a file into the folder without opening a window. So was this requirement about having the window open true for an earlier version?

Wow, I'm amazed no one caught that before this! That was true back in Mac OS 8/9, but isn't in Mac OS X.

I never understood why it was true in 8/9. Why was a file system object dependent upon a gui object, when it's a scripting interface? Was it due to some bad Finder programming?

Not "bad" -- "expedient." The 8/9 implementation was something of a quick hack -- it relied on the fact that the Finder constantly polled the folders for any open windows to see if anything had changed. Adapting the Finder to poll folders that *didn't* have open windows was considered too difficult.

And if the X Finder is so much smarter about adding items, then why do X Finder window items only update when you click on them?

Separate issue. Folder Actions in X (at least the items added/removed ones) don't rely on the Finder at all -- System Events watches all the folders itself and polls them once every three seconds.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Folder actions query
      • From: Sander Tekelenburg <email@hidden>
References: 
 >Re: Folder actions query (From: Christopher Nebel <email@hidden>)
 >Re: Folder actions query (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Illustrator CS - Save Bug
  • Next by Date: Re: Folder actions for all users
  • Previous by thread: Re: Folder actions query
  • Next by thread: Re: Folder actions query
  • Index(es):
    • Date
    • Thread