Hack5190

Send SMS from iMessage (Textual Mac IRC Client)

Jun 29th, 2020 (edited)
1,652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Send SMS from iMessage
  2.  
  3. 1) find the service id for SMS messages (1st is iMesssage, 2nd is SMS)
  4.  
  5. tell application "Messages"
  6.     get services
  7. end tell
  8.  
  9. 2) create send SMS script (existing conversation must exist in messages)
  10.  
  11. tell application "Messages"
  12.     set serviceID to "service id from step #1"
  13.     send "Test Message" to buddy "+14125551212" of service id serviceID
  14. end tell
  15.  
  16. 3) save & test from command line
  17.  
  18. osascript SendSMSMessage.applescript
Add Comment
Please, Sign In to add comment