mac automator自动操作入门

打开并新建一个应用程序

mac automator自动操作入门_第1张图片

几个基本操作

1. 请求文本

mac automator自动操作入门_第2张图片

2. 将输入的文本用于设定变量的值

mac automator自动操作入门_第3张图片

3. 在AppleScript中获取变量的值

mac automator自动操作入门_第4张图片
mac automator自动操作入门_第5张图片

4. 在Shell脚本中获取变量的值

mac automator自动操作入门_第6张图片

5. 录制AppleScript并编辑

mac automator自动操作入门_第7张图片
mac automator自动操作入门_第8张图片

一个例子

日常工作需要在mac上更新代码后,到编译机器打包,传输到测试环境,运行测试程序。但是由于编译时间较长,使得这一过程非常耗时,因此我写一个简单的工作流程,在每次需要测试时进行调用
mac automator自动操作入门_第9张图片

你可能感兴趣的:(效率神器)