Skip to content

Instantly share code, notes, and snippets.

@gitrc
Created November 18, 2013 20:47

Revisions

  1. gitrc created this gist Nov 18, 2013.
    7 changes: 7 additions & 0 deletions sendiMessage.applescript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    on run {targetBuddyPhone, targetMessage}
    tell application "Messages"
    set targetService to 1st service whose service type = iMessage
    set targetBuddy to buddy targetBuddyPhone of targetService
    send targetMessage to targetBuddy
    end tell
    end run