为QuickTime Player添加快进快退快捷键
2016-03-20 01:23
519 查看
为QuickTime Player添加快进快退快捷键
1.打开系统自带的Automator软件
2.新建文稿,选择如图选项
3.选择如图选项
4.如图
5.再如图,新建脚本文件
添加快进脚本代码,这里我设置的是5秒on run {input, parameters} set step to 5 tell application "QuickTime Player" if front document exists then if ((current time of front document) + step) ≤ (duration of front document) then set (current time of front document) to ((current time of front document) + step) else set (current time of front document) to (duration of front document) end if end if end tell return input end run
添加快退脚本代码,这里我设置的也是5秒
on run {input, parameters} set step to 5 tell application "QuickTime Player" if front document exists then if ((current time of front document) - step) ≥ 0 then set (current time of front document) to ((current time of front document) - step) else set (current time of front document) to 0 end if end if end tell return input end run
再点击build按钮,最后commad+s分别保存为“QuickTime Player快进5秒”,“QuickTime Player快退5秒”
之后就可以在如图
看到为它添加的服务了,但是目前只能想快进的时候点击这里很不方便,再为这两个服务添加快捷键就可以了,很方便
欧了!!!
相关文章推荐
- 三十分钟理解博弈论“纳什均衡” -- Nash Equilibrium
- 三十分钟理解博弈论“纳什均衡” -- Nash Equilibrium
- 三十分钟理解博弈论“纳什均衡” -- Nash Equilibrium
- 用浏览器访问网址时,请求头(request header)是根据什么生成的?
- java从request中获取访问者的IP地址
- UIPanGestureRecognizer 拖动View
- 本地推送通知UILocalNotification
- iOS推送:本地通知UILocalNotification
- easyui1.4.4 datebox 新增清空按钮
- QA1:sequence/sequencer/virtual sequence 区别
- Android高阶UI之开源项目
- java并发-Queue及Synchronized、ThreadLocal
- Hibernate逍遥游记-第4章映射对象标识符-increment、identity、hilo、native、assigned、sequence、<meta>
- 如何取出Map的key和value值
- Android的消息机制学习(一)Looper,Handler,MessageQueue
- Map stack和Queue -java
- PSR-2 Coding Style Guide
- UITableView详细注释
- Builer(生成器模式)
- (转)Android中的Handler, Looper, MessageQueue和Thread