Set Spotlight Comments Chosen from List

Hi, I’m trying to create a workflow that adds tags in the Spotlight Comments field that I have chosen from a list.

I am able to get as far as the list but getting the comments I have chosen to appear in the comments field is a tough one for me. :frowning:

Any ideas?

Thanks

Model: macbook 2.1 Ghz C2D
Browser: Firefox 3.6.3
Operating System: Mac OS X (10.5)

Hey erikstotle

You need to use a a small piece of Applescript and a variable.

The Applescript:


on run {input, parameters}
	
	choose from list {"Test1", "Test2"}
	set theChoice to result as string
	
	return theChoice
end run

The Applescript is just at quick-and-dirty solution, it might need some tweaking or small adjustments

I made a small test of this, and have placed a screenshot in my DropBox

http://dl.dropbox.com/u/4301600/automator_spotlight_comment.png

It worked fine for me.

Thanks very much Haze. I’ll give that a try!:smiley: