Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to use AppleScript send iMessage?

Does anyone know how to send iMessage by AppleScript? I tried lots of times, but still cant send an message sucessfully. I am using OS X 10.8.3.


Here is my code

tell application "Messages"

set theBuddy to buddy "mailaddressl" of service "Bonjour"

send "Hi there" to theBuddy

end tell


When I run this code, all I get

error "“Messages”got an error: Can't get“buddy id \"0B6FAA4A-0A36-4A9B-A481-807B5A946D13:mailaddress\"”. " number -1728 frombuddyid "0B6FAA4A-0A36-4A9B-A481-807B5A946D13:mailaddress"


Does anyone know how to solve this problem? Thanks!

MacBook Pro, OS X Mountain Lion (10.8.3)

Posted on Mar 31, 2013 9:52 PM

Reply
2 replies

How to use AppleScript send iMessage?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.