send imesage via cli
osascript sendMessage.scpt ${phonenumber} "message from cli"
This commit is contained in:
parent
f079e44f98
commit
940559a71d
7
scripts/sendMessage.scpt
Normal file
7
scripts/sendMessage.scpt
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user