Ok, I made the Current Web Page (Paste) into a single hotkey event but the idea was the same. (I have simply embedded the keystokes for pasting, inside the script)

Secondly, what do you do to grab selected text from applications like  
Firefox into QS command window just like Cmd+Esc is used in other apps  
(cocoa apps, i think)? 
Regarding, the second issue of grabbing selected text: That was very straight forward. I wonder why no one posted it. I assigned a trigger for:
do shell script "sh /Users/chris/Desktop/firefox_text.sh"

and this is firefox_text.sh

#!/bin/sh -
/usr/bin/osascript <<-EOF

do shell script "osascript /Users/chris/Desktop/firefox_text.scpt | qs"


EOF
exit $?

and this is firefox_text.scpt

tell application "Firefox"
tell application "System Events"
tell process "firefox"
keystroke "c" using command down
return the clipboard
end tell
end tell
end tell


I un
This will be mainly useful to me for bringing up applescripts in the first pane from web pages and using the action "Run as Applescript". 
I have not found a way to put this applescript in the bash script itself. However, it does not take any noticeable extra time to perform the desired function. But, I would like to find out how it could be done.

Reply via email to