文章转自:https://c7sky.com/add-step-forward-backward-feature-to-quicktime-player.html 版权归原作者!
最近用上了 MacBook, 发现自带的 QuickTime Player 没有大多数播放器的方向键快进/快退功能。于是 Google 了一下,分享下解决方法~
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 run5 秒快退
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 5. 保存服务。现在打开 QuickTime Player,就能在菜单栏中的[服务]列表中看到刚刚创建的服务了,但此时只能通过点击来运行服务。
大功告成!播放一个影片试试吧~
参考文章:AppleScript:让普通键盘长出多媒体键! 代码来自:Add step forward/backward feature to QuickTime Player
另外, 按住option+J 调慢播放速度 option+L 调快播放速度 每次调整幅度为0.1