Using iMessage from command line/Terminal

Hello, I know that using:


osascript -e 'tell application "Messages" to send "Hello John!" to buddy "John Doe"'


Will send a message to my contact "John Doe"


I'm trying to do the same but only with the phone number itself instead of having to create a contact (e-commerce customers for example)


I tried different ways but was unable to do id correctly.


Regards

Posted on May 6, 2018 7:42 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using iMessage from command line/Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.