目前,它正在将消息作为 iMessage 发送出去,我必须逐个浏览每条消息,然后将其重新发送为 SMS (击败目的)。
set theSpeel to "" & first word of theName & "" & theExp & ""
tell application "Messages"
activate
send theSpeel to buddy theNumber of service 1
end tell
答案 0 :(得分:0)
旧问题,但对于其他想要这样做的人,您可以将以下Applescript保存为sendSMS.app:
on run {targetBuddyPhone, targetMessage}
tell application "Messages"
send targetMessage to buddy targetBuddyPhone of service "SMS"
end tell
end run
在终端中运行osascript sendSMS.app 5551234 "Hello"
发送" Hello"编号为5551234作为短信(假设您已将手机设置为短信转发到Mac)。 Hat tip