added files for using imessage over terminal

This commit is contained in:
2024-04-12 00:14:15 -04:00
parent c7403ace11
commit 3a0b6352a2
2 changed files with 27 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
on run {targetBuddyPhone, targetMessage}
tell application "Messages"
set targetService to 1st service whose service type = SMS
set targetBuddy to buddy targetBuddyPhone of targetService
send targetMessage to targetBuddy
end tell
end run