Leopard-Spotlight-Applescript

Sarah Reichelt sarah.reichelt at gmail.com
Sun Nov 4 17:17:33 EST 2007


On 11/5/07, Jim Sims <sims at ezpzapps.com> wrote:
> 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
>

Not only does it work perfectly, but I plan to use that trick of
setting the search string. Thanks!

Mac OS X 10.5, Intel Core 2 Duo iMac.

Cheers,
Sarah



More information about the use-livecode mailing list