Text 如何使用文本转发使Applescript告诉消息以SMS消息的形式发送消息?
目前,它以iMessage的形式发送消息,我必须逐一查看每条消息,并在短消息无法达到目的时重新发送Text 如何使用文本转发使Applescript告诉消息以SMS消息的形式发送消息?,text,sms,applescript,messages,imessage,Text,Sms,Applescript,Messages,Imessage,目前,它以iMessage的形式发送消息,我必须逐一查看每条消息,并在短消息无法达到目的时重新发送 set theSpeel to "" & first word of theName & "" & theExp & "" tell application "Messages" activate send theSpeel to buddy theNumber of service 1 end tell
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 Helloin terminal会将Hello发送至号码5551234,并将其作为短信发送,前提是您已将手机设置为短信转发至Mac S.O.提示:您迄今为止所尝试的一段代码将鼓励人们帮助您。外面的人喜欢密码。