Skip to content

Instantly share code, notes, and snippets.

@othercat
Created July 25, 2013 14:33
Show Gist options
  • Save othercat/6080286 to your computer and use it in GitHub Desktop.
Save othercat/6080286 to your computer and use it in GitHub Desktop.
tweet Safari URL using Apple Script for @yamibo
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