Jun 15, '05 09:25:00AM • Contributed by: mark hunte
I want to be able to search for AppleScripts by content in Spotlight, but it seems there is not an importer plug-in for this (yet?). I know I can find them by name, but most of the time this is not enough. Like when I know there is a line I used in a script I want to look at again to see how I did part of it, but cannot remember what the script was called.
So I wrote a very quick and dirty AppleScript to open the currently selected script(s), copy their contents, paste them into the Spotlight comments field, close the Get Info window and script file, and move on to the next selection. I know there is probably a better (prettier) way to write this, but as I said, it did not take long to write.
Now in spotlight I can type something like keystroke scpt and get all the scripts which have the word keystroke in their content.
