Thursday, January 05, 2006

Using Folder Actions

Apple is doing a major revamping of their web site, with special pages targeting user communities. In general it looks like a solid improvement. This might help explain why so many of their web pages were becoming neglected and decrepit -- they were foregoing maintenance pending the new release.

Their "pro" site has a "tip" from Scott Kelby Mac OS X tip every Wednesday. Most annoyingly, there's no RSS feed. You have to remember to visit. Dumb. If they provided a title-only feed they get much more site traffic. Maybe that's coming. Today's tip was on Folder Actions, another Tiger features I've not found a use for ...
Apple - Pro - Tip of the Week - Adding Automation Through Folder Actions:

At the office, I’m on a network and I have a Drop Box where my co-workers (freaks that they are) can send me files. However, for a long time, if a freak put something in my Drop Box, I wouldn’t know it unless they called or emailed me and told me so. But now anytime one of them drops something in my Drop Box, a message dialog appears that says, “Something freaky is in your Drop Box.” This is a simple AppleScript ...

To assign a script to a folder, Control-click on that folder and choose Configure Folder Actions from the contextual menu that appears. This brings up the Folder Actions Setup dialog, where you toggle various scripts assigned to folders on and off, or even edit scripts (if you know how to write AppleScripts). Click the plus sign ( ) button at the bottom left of the dialog to add your folder to the list (this actually brings up a standard Open dialog showing your folder, so click on your folder in the dialog and click Open). Once you do this, a window will pop down with a list of built-in sample scripts you can assign to this folder, and their names give a cryptic description of what they do. Pick the one that sounds like what you want to do (to replicate my Drop Box warning, choose “add — new item alert .scpt”) and click the Attach button (you’ll see your newly assigned script appear in the column on the right of the dialog). Now click the Enable Folder Actions checkbox at the top-left corner of the dialog. This is a global on/off switch, so any folder to which you’ve attached scripts is now “activated.”

By the way, once you’ve applied actions to a folder, you can turn Folder Actions on or off globally by Control-clicking on any folder and choosing Enable Folder Actions or Disable Folder Actions from the contextual menu.

No comments: