Great Quicksilver/MetaMark Python Script!

Great little script here for using the MetaMark URL shortening service in conjunction with Quicksilver.

Some enhancements…

For FireFox users, replace the Safari-laden AppleScript lines with:


applescript = '''tell application "Firefox"
	set ff to properties of front window as list
	get item 3 of ff
end tell'''

For those who also cannot partake of system beeps for notification upon shortening completion here’s a Growl replacement for the end beeping:

popen('growlnotify -n "surl" -m "URL Shortened\n' + url + ' :: ' + shortURL + '"') ;

(that requires installing the growlnotify support - which you probably did if you’re a Growl user - and having “/usr/local/bin in the appropriate path (you can just pre-pend that onto the growlnotify command just to be sure.


Technorati Tags:
|