Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- targetBuddyPhone='+44765979706'
- targetMessage='This is a automated message'
- osascript <<EOF
- tell application "Messages"
- set targetService to 1st service whose service type = iMessage
- set targetBuddy to buddy "$targetBuddyPhone" of targetService
- send "$targetMessage" to targetBuddy
- end tell
- EOF
Add Comment
Please, Sign In to add comment