AppleScript脚本
来源:互联网 发布:网络招嫖判刑多久 编辑:程序博客网 时间:2024/05/16 05:30
1, 打开程序后, 模拟手键盘的输入(模拟tab键, 模拟依次按键, 以及按住Command+V键)
tell application "Mail"
activate
settheMessage to make newoutgoing message with properties {visible:true,subject:"mysubject"}
end tell
tell application "System Events"
tell process "Mail"
--repeat until focused of UI element 1 of scroll area 4 of window 1
--keystroke tab
--end repeat
keystroke "yiono"
--keystroke "v" using command down
end tell
end tell
2, 模拟菜单打开操作, 打开photo Booth应用,然后执行一个拍照的操作
tell application "Photo Booth"
activate
end tell
tell application "System Events"
tell process "Photo Booth"
delay 3
tell application "Finder"
set visible of process "Photo Booth"to false
end tell
tell menu bar 1
tell menu bar item "File"
tell menu "File"
clickmenu item "Take Photo"
end tell
end tell
end tell
end tell
end tell
- AppleScript脚本
- Mac Applescript 脚本
- Objective-C 运行AppleScript脚本
- java中运行AppleScript脚本(running AppleScript in Java)
- AppleScript
- AppleScript
- 我的第一个 AppleScript 脚本
- 从终端命令行运行 AppleScript 脚本
- AppleScript 脚本让 Mac 唱生日快乐歌
- Mac OS X下使用launchctl定时启动AppleScript脚本
- 苹果脚本- Send SMS to Messages and run commands with AppleScript
- 苹果脚本-How to send a message using iChat and AppleScript
- AppleScript 笔记
- AppleScript入门
- AppleScript学习笔记(一)初识AppleScript
- AppleScript语言简介
- AppleScript语言简介
- AppleScript 读写plist文件
- ios官方文档( dom数据解析用到方法)
- 2013年终总结
- MongoDB的Replica Sets的介绍和部署
- 6.Android 加载图片
- 解决zencart出现乱码的方法,后台乱码解决方法
- AppleScript脚本
- go语言RPC
- cf-379D-New Year Letter
- 依赖注入 接口 抽象
- Mac TimeMachine备份到Windows台式机
- 开启Android 4.3的原生的应用权限配置界面
- Android4.0中Bluetooth的代码结构
- maven 引入war
- 开发者不容错过的60个免费资源库