Как отправить текст imessage с помощью applescript, только в предоставленном сервисе?

Может ли кто-нибудь показать мне, как отправить сообщение непосредственно пользователю iMessage через приложение «Сообщения»?

tell application "Messages"
    if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 1
    if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 2
    if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 3

    send "Message" to buddy "mail of name" of service x
end tell

Мне нужно отправить сообщение на аккаунт только через iMessage, а не через google talk, AIM, bonjour. Благодарю вас!

18
задан Andrew Mast 10 March 2016 в 22:06
поделиться