目前,它作为iMessage发送消息,我必须一次通过每条消息,然后将它们作为SMS重新发送(达不到目的)。
set theSpeel to "" & first word of theName & "" & theExp & ""
tell application "Messages"
activate
send theSpeel to buddy theNumber of service 1
end tell
目前,它作为iMessage发送消息,我必须一次通过每条消息,然后将它们作为SMS重新发送(达不到目的)。
set theSpeel to "" & first word of theName & "" & theExp & ""
tell application "Messages"
activate
send theSpeel to buddy theNumber of service 1
end tell
老问题,但对于其他想要这样做的人,您可以将以下 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”作为 SMS 发送到号码 5551234(假设您已将手机设置为将 SMS 转发到您的 Mac)。帽尖。