Guest User

Untitled

a guest
Jun 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. targetBuddyPhone='+44765979706'
  2. targetMessage='This is a automated message'
  3.  
  4. osascript <<EOF
  5. tell application "Messages"
  6. set targetService to 1st service whose service type = iMessage
  7. set targetBuddy to buddy "$targetBuddyPhone" of targetService
  8. send "$targetMessage" to targetBuddy
  9. end tell
  10. EOF
Add Comment
Please, Sign In to add comment