-
-
Save xenatt/6050281 to your computer and use it in GitHub Desktop.
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
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