Re: Scripting Sherlock engine
Re: Scripting Sherlock engine
- Subject: Re: Scripting Sherlock engine
- From: Kai Edwards <email@hidden>
- Date: Wed, 11 Sep 2002 03:00:12 +0000
on Tue, 10 Sep 2002 00:11:03 +0100, "Philippe GRUCHET"
<email@hidden> wrote:
>
Something like...
>
tell app "Sherlock" to index containers alias "HD:filename"
>
...open the Sherlock application.
>
>
Is it possible to index a file using the Sherlock engine in background
>
without opening the Sherlock application?
You might try something like this, Philippe - which works on my system
pretty much as you describe:
--------------------------------------------------------------------
set indexItems to {alias "Hard Disk:Documents:"} -- list as required
tell application "Sherlock 2"
launch
index containers indexItems
quit
end tell
tell application "Finder"
repeat until process "Find by Content Indexing" exists
end repeat
set visible of process "Find by Content Indexing" to false
end tell
--------------------------------------------------------------------
If Sherlock is not already open, it should not appear. The 'Indexing
Progress' window is shown briefly as the indexing process begins - but is
then hidden from view for the rest of the operation.
HTH
Kai
--
email@hidden
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.