Skip to content

Instantly share code, notes, and snippets.

Brian Holman zbholman

Block or report user

Report or block zbholman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zbholman
zbholman / imessage
Last active May 30, 2016 — forked from aktau/imessage
Send iMessage from the commandline
View imessage
#!/bin/sh
if [ "$#" -eq 1 ]; then stdinmsg=$(cat); fi
exec <"$0" || exit; read v; read v; read v; exec /usr/bin/osascript - "$@" "$stdinmsg"; exit
-- another way of waiting until an app is running
on waitUntilRunning(appname, delaytime)
repeat until my appIsRunning(appname)
tell application appname to close window 1
delay delaytime
end repeat
You can’t perform that action at this time.