imessage.sh originally from https://gist.github.com/aktau/8958054