Skip to content

Instantly share code, notes, and snippets.

@zhasm
Created February 22, 2013 11:27
Show Gist options
  • Save zhasm/5012821 to your computer and use it in GitHub Desktop.
Save zhasm/5012821 to your computer and use it in GitHub Desktop.
send text msg to iPhone via Messages.app under bash commandline
#!/bin/bash
exec osascript <<EOF
set peopleICareAbout to {"MyFullName"}
tell application "Messages"
repeat with myBuddy in buddies
if full name of myBuddy is in peopleICareAbout then
send "$*" to myBuddy
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment