Skip to content

Send iMessage to your signed iOS/Mac Devices from Terminal

I just stumbled on a neat trick to send iMessage to your signed-in iOS/Mac devices from the macOS terminal. It will send notifications to your Apple devices, especially if you’re working on automation or long-running shell scripts / Docker build from your Macbook once they’re complete.

$ osascript -e 'tell application "Messages" to send "Hey, your long ass task is complete" to buddy "+6012xxxxxx"'

Replace +6012xxxxxxx with your phone number.

Published inTutorials

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.