Quicksilver Tricks
I’m not sure if I’ve mentioned this before, but I am a lazy person. I hate using a mouse, I hate the trackpad even more, thus I use the keyboard.. a lot. That being said, here is how you can make Quicksilver add the current URL from safari to the shelf mod. Of course you will need to have the shelf mod up and running and have the action ‘Put on Shelf’ enabled.
I threw together this little bit of AppleScript to grab the URL and import it into quicksilver:
try
tell application "Safari"
set saf_url to URL of front document
end tell
on error
display dialog "Could not grab URL" buttons {"Ok"}
set saf_url to ""
end try
if saf_url is not "" then
tell application "Quicksilver"
activate
set selection to saf_url
end tell
end if
Then you just TAB and “put on shelf”. Now you have URL shelving without taking your hands off the keyboard. Of course URLY also does a good job of this.







Szymon August 17th
This script is exactly what I was trying to do, but didn’t know how to activate Quicksilver with a selection.
Unfortunately, running your script (in ScriptEditor) i get an error:
“Quicksilver got an error: Can’t set selection to …(url here)…”
Maybe I’m launching the script in a wrong way – but I also tried to make a Quicksilver trigger launch it directly, with no results. What am I doing wrong?
Szymon August 17th
When I run this script in ScriptEditor, I get the following error:
‘Quicksilver got an error: Can’t set selection to “http://blog.ubrio.us/osx/mac-safari-quicksilver-tricks/”.’
I also tried to run this script directly from Quicksilver, but with no effect. Am I doing something wrong?
Szymon August 17th
Could you please explain how to incorporate this script into Quicksilver?
I tried saving it as a .scpt and binding it with a trigger (with the Run action), but it doesn’t do anything. I also tried running the script directly from the Script Editor, but obtained an error: ‘Quicksilver got an error: Can’t set selection to “http://blog.ubrio.us/osx/mac-safari-quicksilver-tricks/”.’
Add Yours
YOU