Skip to content

Tag: terminal

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.

Leave a Comment