Folksonomise your files with Automator
by Giles Turnbull
A little while back I wrote up some notes about getting things done on your Mac, notes that were largely inspired by the thoughts and writings of the 43Folders community, and its ad-hoc Organizer-in-chief, Merlin Mann.
One of the big buzzwords in personal (and digital) organization these days is 'folksonomy'; the process of adding keywords, or tags, to data in an effort to arrange it into loose 'clouds' of connectivity. The influence of web services like del.icio.us and Flickr has spread far.
If you want to use the same approach to your files and documents in Tiger, Automator offers the perfect solution.
My first effort with Automator was to create a workflow I named "@taggit". It's probably one of the simplest workflows you can imagine, consisting of just two actions: Get Selected Finder Items, followed by Add Spotlight Comments to Finder Items. This second action has the comments field left blank, and the Show Action When Run option checked.
I saved it as a workflow in my Scripts Folder, so it was in easy reach from the Scripts Menu.
When I run it with one or more files selected in the Finder, a little box appears asking me to type in some tags. Just like del.icio.us, I just separate them with spaces.
The Spotlight Comments field in a Get Info inspector
Spotlight Comments are a new addition in Tiger. Invoke Get Info on any file, and you'll see a new text field at the top of the Info inspector, into which you can stick tag-like annotations. Spotlight sees these comments, so all files with the same tag will appear together in a Spotlight search window.
Better yet, you can create a Smart Folder using the criteria "Spotlight Comment" and "Contains" to keep all the "foo"-tagged files together in a always up-to-date "foo" folder.
A Smart Folder for auto-grouping files tagged with 'flower'
If you wish, you could also save such a workflow as a Finder plug-in (hit Option+Command+S in Automator) which becomes available when you control-click (or right-click, two button mouse owners) on any Finder selection.
Now it's fair to say that the process of tagging lots of files is going to be time-consuming, but I'm wondering about the possibilities.
Consider my (oft-mentioned here) aging iBook. Despite the 640MB of RAM installed, it struggles to run iPhoto 5 at any kind of acceptable speed. So perhaps I could use Spotlight tagging and Smart Folders to organise my photos in the Finder. Editing tasks can be left in the capable hands of Graphic Converter.
Only one way to find out if this will work. I'm off to do some tagging.
Tragic, or taggerific?
This is not Folksonomy
I believe you are erroneously using the term "folksonomy." Tagging as one method of classification in itself does not equate to folksonomy. Instead, the "folk" in folksonomy refers to the socially collaborative component to tagging. Items one tags or classifies on a computer using Automator are not collaboratively tagged - only the user of the particular user account on that particular machine classifies his/her documents.
Nevertheless, I just installed 10.4.1 this past weekend and have not looked into Automator. I like the potential of this tool because I think that the average consumer is not interested in classifying information. Once the average consumer saves a file he/she has created, he/she does not want to have to do the work of classifying it for easier retrieval. The user just wants to save it and then be able to retrieve it.
Hopefully the automator can do some of the "heavy lifting" of performing these classification and indexing work processes.
There's an easier way to manipulate Spotlight comments than the interface the Finder gives you. Meta is a search application built on Spotlight, but it uses an advanced version of the Spotlight search syntax, displays all the metadata for your items, and allows you to efficiently edit or append Spotlight comments for multiple items in one shot.