Skip to content

Instantly share code, notes, and snippets.

View devopsec's full-sized avatar

Tyler Moore devopsec

View GitHub Profile
@devopsec
devopsec / imessage
Last active June 11, 2023 19:51 — forked from aktau/imessage
Send iMessage from the commandline
#!/usr/bin/osascript
-- another way of waiting until an app is running
on waitUntilRunning(appname, delaytime)
repeat until my appIsRunning(appname)
tell application "Messages" to close window 1
delay delaytime
end repeat
-- the fact that Messages.app is running