关于imessage群发消息出错 解决办法
代码(这是网上找到的)tell application "Messages"set csvDatato read "/Users/javalong/Desktop/message_push/test2.txt"set csvEntriesto paragraphsof csvDatarepeat with ifrom 1 to countcsvEntries
代码(这是网上找到的)
tell application "Messages"
set csvDatato read "/Users/javalong/Desktop/message_push/test2.txt"
set csvEntriesto paragraphsof csvData
repeat with ifrom 1 to countcsvEntries
set phone to (csvEntries'sitem i)'stext
set myid to get idof first service
set theBuddy to buddyphone of service idmyid
send "今天北京晴,气温13到27度;周二晴,气温11到26度,北风3-4级;周三晴,气温11到24度,微风<3"to theBuddy
delay 1
set FailNum to (getcount chat)
if FailNum > 100 then
repeat withj from 1 to FailNum
setphone to (getname of chat (FailNum -j))
setDelMsg to "iMessage;-;" &phone
ifexists (text chatid DelMsg)then
deletetext chat idDelMsg
end if
end repeat
end if
end repeat
end tell
代码 应该是没错,但是运行 抱错 如下。
解决办法:
这里点开,
就点开什么都不用做
然后就能运行成功啦 哈哈哈~~~~
更多推荐
所有评论(0)