Skip to content

Instantly share code, notes, and snippets.

@xenatt
Forked from anonymous/gist:3417877
Created July 21, 2013 22:37
Show Gist options
  • Save xenatt/6050281 to your computer and use it in GitHub Desktop.
Save xenatt/6050281 to your computer and use it in GitHub Desktop.
display dialog "Tweet?" default answer "" buttons {"OK"} default button 1
set mytweet to text returned of result
tell application "System Events"
tell process "Notification Center"
click menu bar item 1 of menu bar 1
click button 1 of UI element 1 of row 2 of table 1 of scroll area 1 of window "window"
keystroke mytweet
keystroke "D" using {command down, shift down}
keystroke space
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment