Skip to content

Instantly share code, notes, and snippets.

@netstu
Created December 20, 2013 05:43
Show Gist options
  • Select an option

  • Save netstu/8050857 to your computer and use it in GitHub Desktop.

Select an option

Save netstu/8050857 to your computer and use it in GitHub Desktop.
applescript UI event
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