简单的Imessage重复发送脚本
2014-06-28 20:47
369 查看
环境要求:
Mac OS 10.8以上版本,Messages应用程序,AppleScript编辑器(以上都是内置)原理:
AppleScript是苹果公司开发的一种脚本语言,可以用来控制运行于Mac OS上的程序通过一个循环语句,即可实现重复发送。
注:接受者可以填手机号,也可以填邮箱号,但必须是开通Imessage的账号
手机号格式:XXX-XXXX-XXX
Sample:
模仿前阵子特别水的某打车平台的广告#!/usr/bin/osascript on run argv <span style="white-space:pre"> </span>set msg to item 1 of argv tell application "System Events" tell application "Messages" to activate end tell tell application "Messages" repeat 20 times set myid to get id of first service set theBuddy to buddy "XXXX@icloud.com" of service id myid send ":-)风靡全国的打车神器 :-)免费叫出租 1分钟应答 :-)已开通北京、上海、广州、武汉、天津、南京 :-)下载:http://ums.bz/MK4SaR/ 新浪官方微博@滴滴打车" to theBuddy end repeat end tell end run
相关文章推荐
- python写的简单发送邮件的脚本
- Python实现的简单发送邮件脚本分享
- 简单统计postfix发送人记录的脚本
- Python实现的简单发送邮件脚本分享
- python写的简单发送邮件的脚本
- 使用一个简单的python脚本将一个本地文件以码流的形式,通过UDP协议发送到对端:
- python写的简单发送邮件的脚本
- bash: 避免命令重复执行的简单脚本
- 解释型脚本向编译型脚本转化的一个简单转变
- Infopath脚本发送邮件
- 在.net执行sql脚本的简单实现
- Asp环境下,用 C 写一个邮件发送组件如此简单[附源代码]
- unix shell 脚本 (最简单的一个)
- ASP.NET服务器控件发送脚本
- 批量查找/替换,包括子目录,自动备份.简单脚本.
- 一个简单的邮件类[使用jmail组件发送]
- 一个“发送到任意文件夹快捷方式”的脚本程序
- [JS脚本][实用小软件]一个简单的汉字简体繁体转换工具源代码
- 使用python发送简单的邮件
- ASP.NET服务器控件发送脚本