Is there a way to read the script text mainly for compiled scripts? If there’s a way to read the bundled ones or even apps then even better.
I am trying to search scripts because they are getting hard to find.
Edited: I’ve never scripted the script editor, but maybe something like this:
text of front document
I was hoping that there might be another way rather than opening the script editor.
There is no need to convert the scripts to text or anything for searching really, if what you are searching for is a single word, and not all occurences of say a variable.
Then I just enter “kind: osa mysearchterm” in the Spotlight Bar. I realize that I may have an upper hand here, since Script Debugger comes with a preview plugin, so that I can preview my code in the Spotlight Window. I don’t find it unrealistic that some other entity, has made a similiar plugin that they provide for free. At least there was a free Spotlight plugin for AppleScript before Apple Provided one.
i haven’t tried any of these, and why should I since I have paid for Script Debugger?
But try this google query: quick look plugin applescript, and you’ll see that there are numerous free solutions out there, that lets you live a whole lot more comfortable… (Sometimes I think using osadecompile to be a good solution though, maybe after a spotlight query.)
I was thinking of saving the script text with osadecompile as key value pairs where the keys are the posix paths to the script. Then I just search all keys for values that contain the search text. THere’s so many ways to do this (e.g. database, xml, applescript, sqlite3 and who knows what else. Earlier, I was thinking about storing the text in Notes. Need to look at this again tomorrow.
I am sure that ScriptLight is a good application to have, but personally, I swear to having a quicklook plugin, that I pereuse the results I get in the Spotlight Window.
Given that the first match in the google query I specifed first works, then I think you should try the free option, and see if it works for you.