diff --git a/scripts/sendMessage.scpt b/scripts/sendMessage.scpt new file mode 100644 index 0000000..ee2f1e4 --- /dev/null +++ b/scripts/sendMessage.scpt @@ -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