0 Replies
      Latest reply on Aug 1, 2017 10:08 PM by CaptainPixels
      CaptainPixels Level 1 Level 1 (0 points)

        So far I have this code, where the (***)***-**** is a phone number that I have in my contacts. I have a group chat named applescripttest with two other people, and I want to add theBuddy to the chat.

         

        tell application "Messages"

          set theBuddy to buddy "(***)***-****" of (service 1 whose service type is iMessage)

          invite theBuddy to "applescripttest" with message "test"

        end tell

         

        This gives me an error message of the following:

        (the asterisks are the phone number, and the #'s are a bunch of characters, and I don't if they reveal personal information)

         

        Messages got an error: buddy id "################:+1**********" doesn’t understand the “invite” message.

         

        By the way, if I were to swap the line where I invite theBuddy for:


        send "test" to theBuddy

         

        It sends a message to theBuddy without an error.