you say the trigger is on cmd-opt-P but the script says "shift down"

also the pipe to qs part is missing the trailing hyphen.

Howard

On Apr 16, 2009, at 9:15 AM, Chris Cairns wrote:


I dont know where i am moving but this is what happens:

I have a script with a trigger Cmd+Option+P

tell application "Firefox"
        set myFirefox to properties of front window as list
        set currentURL to item 3 of contents of myFirefox
        return currentURL
end tell

I use the "paste result when executed" function in Butler. I run this script 20 times or more by pressing "p" and holding cmd+option just to see that firefox is really giving me the URL.

However, the moment i use my other trigger for running this script:

tell application "Firefox"
        set myFirefox to properties of front window as list
        set currentURL to item 3 of contents of myFirefox
        do shell script "echo " & currentURL & " | qs"
        tell application "System Events"
                delay 0.5
                keystroke "p" using {command down, shift down}
--if p does paste in actions pane of your quicksilver
        end tell
end tell

it works once and then it screws firefox. Firefox stops giving the URL even when i use Cmd+Option+P and run the earlier script.

I am not concerned with what it does to firefox, my focus is on the behavior of the piping command of quicksilver. Is it known to be buggy?


Reply via email to