您的位置:首页 > 产品设计 > UI/UE

为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秒”

之后就可以在如图



看到为它添加的服务了,但是目前只能想快进的时候点击这里很不方便,再为这两个服务添加快捷键就可以了,很方便

欧了!!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: