Send iMessages from the Command Line
Just run the following in your shell:
$ curl https://raw.github.com/gist/2376590/imsg.rb > ~/bin/imsg
$ chmod +x ~/bin/imsg
The same command will update the script if/when I update it. It also assumes that ~/bin
is in your path.
$ imsg <recipient e-mail/phone no.> <message>
The last two lines can be simplified as
If you want to
tell
a single command with AppleScript, you don’t needYou can instead do it in a single line with