Pastery

SMSClipboardShortcut +

SMS Clipboard Shortcut

Updated 05152023-120535


Social


Send the contents of the Mac system clipboard to a single phone number.

Please note: you'll need to change the value of the phone number within the Run Applescript action with your own intended target.

This shortcut uses Applescript to send the value of the Mac system clipboard to the provided recipient using the Messages app.

The full script is below:

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

Contact

New paste