Created
July 25, 2013 14:33
-
-
Save othercat/6080286 to your computer and use it in GitHub Desktop.
tweet Safari URL using Apple Script for @yamibo
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 theURL to URL of front document | |
set theTitle to name of front document | |
-- set the clipboard to theTitle & return & theURL as string | |
end tell | |
-- change the status message to your liking here: | |
set tweet to "test Reading: " & theURL & space & theTitle & " cc @yamibo " | |
tell application "System Events" | |
open location "twitter://post?message=" & tweet | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment