Skip to content

Instantly share code, notes, and snippets.

@dennyweiss
Forked from zhasm/iMessage.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save dennyweiss/87d59daecebaf143512f to your computer and use it in GitHub Desktop.
Save dennyweiss/87d59daecebaf143512f to your computer and use it in GitHub Desktop.
#!/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