It won't work as a QS action (second pane) because it doesn't act on
anything. Just save this in your scripts folder and run it from there
(in QS's first pane).

Configure your trigger the same way (the script in the first pane of
the trigger, Run in the second pane of the trigger).

Why the script doesn't work from the Scripts menu I don't know. It
does not make any sense that it wouldn't, provided you have it saved
in ~/Library/Scripts.

On Mar 2, 10:13 am, Chris Cairns <[email protected]> wrote:
> (To those who receive forum posts as email: Sorry, if you are
> receiving this same post twice)
> I am looking for an applescripter to help me.
> I have a script which works perfectly only when i bring up the script
> in quicksilver's first pane and execute the run action in the second
> pane. I have tried setting up a trigger for it after placing it in the
> appropriate ("Actions") folder and i have also tried running it from
> the script menu. Neither of them work. I am using Mac OS 10.5 and QS
> B54(3815).
>
> I want to know what modifications are to be done to the script so that
> a trigger can be setup for it.
> What does QS's run action do something different that makes the script
> work?
>
> The purpose of the script is to change the "Spelling and Grammar"
> language to "Francais".
> Use it with applications like Safari, TextEdit etc
> How to use: Open the application. Bring up script in quicksilver and
> execute run action.
>
> here is the script:
>
> tell application "System Events"
>         set {name:theApp, bundle identifier:theIdentifier} to (get 1st
> application process whose frontmost is true)
> end tell
>
> tell application "System Events"
>         tell process theApp
>                 keystroke ":" using command down
>                 tell window "Spelling and Grammar"
>                         delay 1
>                         click pop up button 1
>                         keystroke "f" & return
>                         click button 1
>                 end tell
>         end tell
> end tell

Reply via email to