Created
February 15, 2023 17:31
-
-
Save extratone/fe653e065f5661adca563a54bee4622e to your computer and use it in GitHub Desktop.
Send the current contents of the system clipboard to the provided telephone number via the Messages Mac app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Messages" | |
set targetBuddy to "+15738234380" | |
set targetService to id of 1st account whose service type = iMessage | |
set textMessage to (the clipboard) | |
set theBuddy to participant targetBuddy of account id targetService | |
send textMessage to theBuddy | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment