Created
December 20, 2013 05:43
-
-
Save netstu/8050857 to your computer and use it in GitHub Desktop.
applescript UI event
This file contains hidden or 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 "System Events" to tell process "Messages" | |
| set input to "how are you" as text | |
| click button 1 of group 1 of splitter group 1 of window 1 | |
| delay 1 | |
| keystroke "8618640957111,8613552220268" -- type the reciever | |
| keystroke return -- validate the previous input | |
| --keystroke tab -- move to message input | |
| --keystroke input -- type the message | |
| --keystroke return | |
| --keystroke return | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment