Re: Scripting Sherlock
Re: Scripting Sherlock
- Subject: Re: Scripting Sherlock
- From: Jeremy Reichman <email@hidden>
- Date: Thu, 07 Dec 2000 17:00:38 -0500
I'm not aware of any way you can pass a search string along to Sherlock 1 or
2. You'd have to save the search string in Sherlock *first*, and then call
that search from the set of saved searches. I've looked for a way around
this and haven't found a useful one yet.
Downright inconvenient, I say. A primary reason why I'd want to script
Sherlock is because I want to pass it qualities I want to search for, so no
manual intervention is required. A script can't create a saved search,
either, AFAIK.
on 12/7/00 6:33 AM, Simon Forster at email@hidden wrote:
>
Is it possible to script Sherlock to search a sub-folder for every file
>
beginning with a tilde (~). This is easy to do in the Finder (see code
>
snippet below) but is damn slow. Sherlock should be quicker if it's possible
>
to script it to do this (but I believe it's not possible).
>
>
TIA
>
>
>
--Code snippet
>
repeat with i in (every folder of the entire contents of folder ((name of
>
startup disk) & ":WebSTAR") whose name begins with "~")
>
set end of folderList to (i as string)
>
end repeat
>
--End code snippet
>
>
Simon Forster
--
Jeremy Reichman, aka "Jaharmi"
Software Specialist III (Mac OS) / Instructor
Customer Support Services
Information and Technology Services
Rochester Institute of Technology
Rochester, New York, USA
World Wide Web <
http://www.rit.edu/~jjracc/>
Electronic mail <
mailto:email@hidden>