为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秒”
之后就可以在如图
看到为它添加的服务了,但是目前只能想快进的时候点击这里很不方便,再为这两个服务添加快捷键就可以了,很方便
本文介绍了如何通过Apple的Automator工具为QuickTime Player自定义快进和快退的快捷键操作。通过一系列步骤创建并保存脚本,设置快进和快退5秒的功能,并最终为这两个服务分配快捷键,提高观影体验。
5083





