Friday, January 6, 2006

Automator: View Spotlight Attributes!
Seems like I only play with Automator when I'm away from the office. Actually, now that I think about it, most of my automator playing happens in hotel rooms around the DC area, and that's kinda funny in and of itself.

Anyway, the way Spotlight works is that it somehow associates attributes with files. Which is very cool, but you can't usually see all of the attributes associated with a file. Well, you can with the mdls terminal command, but who wants to do that?

Oddly enough, even I'm too lazy to do this. So I wrote an Automator Workflow to do this. Technically it's 5 lines of AppleScript sandwich between two Automator actions, 'cause I'm too lazy to write the entire thing in AppleScript.

This Automator Workflow gets the output for mdls for the selected file, then outputs it to a new TextEdit window.

Download Spotlight Data For Selection

I also wrote my first Automator Action, it doesn't do anything useful, but hey, it's a first step