Created
February 24, 2012 16:51
-
-
Save TALlama/1901983 to your computer and use it in GitHub Desktop.
Tweet from Safari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
set _tab to the current tab of window 1 | |
tell _tab to do JavaScript "var t = escape(getSelection()); if (t.length > 0) t = '“'+t+'”: '; window.location = 'twitterrific:///post?message='+t+''+escape(window.location.href)" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment