`
lizhuohuang
  • 浏览: 117730 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

applescript 发送 iMessage 消息

阅读更多

 

 

 mac 通过applescript 发送imessage消息

tell application "Messages"
	set csvData to read "/Users/larry/Desktop/tools/test.csv"
	set csvEntries to paragraphs of csvData
	repeat with i from 1 to count csvEntries
		set phone to (csvEntries's item i)'s text
		set targetService to (1st service whose service type = iMessage)
		set targetBuddy to buddy phone of targetService
		send "ce si" to targetBuddy
	end repeat
end tell

 也可参考如下网站 http://www.zhihu.com/question/20935845/answer/19777058

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics