Leopard-Spotlight-Applescript

Klaus Major klaus at major-k.de
Sun Nov 4 13:27:54 EST 2007


Hi sims,

> Looks like I will not have a copy of Leopard very soon
> (living on far & distant planets has pluses and minuses)
> so could some kind soul please test the following Applescript
> on Leopard for me?
>
> If it works it will open a spotlight search for "bob".
>
> TIA
> sims
>
> tell application "Finder"
> 	set the search_string to "bob"
> end tell
> tell application "System Events"
> 	keystroke " " using {option down, command down}
> 	delay 1
> 	keystroke search_string
> 	delay 1
> end tell

works fine, did open a Finderweindow with the search results.


Best

Klaus Major
klaus at major-k.de
http://www.major-k.de





More information about the use-livecode mailing list