The now playing widget works great, but I would like to add the ability to fast forward/rewind some amount of time in the now playing application, maybe 5 seconds.
Is there a way to do this, presumably with applescript or javascript?
The now playing widget works great, but I would like to add the ability to fast forward/rewind some amount of time in the now playing application, maybe 5 seconds.
Is there a way to do this, presumably with applescript or javascript?
Sure there is!
I’ve got it working, so i will share my AppleScript. This AppleScript will use the NowPlaying widget in the menu bar. But you have to translate it to your own Mac language, mine is Dutch.
(Bedieningspaneel = control centre? Huidig onderdeel = Now Playing? Spoel Terug = Fast rewind?)
This is the one for Fast Rewind:
tell application "System Events"
tell its application process "Bedieningspaneel"
tell its menu bar 1
click its menu bar item "Huidig onderdeel"
end tell
tell its window "Bedieningspaneel"
click its UI element "spoel terug"
end tell
tell its menu bar 1
click its menu bar item "Huidig onderdeel"
end tell
end tell
end tell
And this for fast forward:
tell application "System Events"
tell its application process "Bedieningspaneel"
tell its menu bar 1
click its menu bar item "Huidig onderdeel"
end tell
tell its window "Bedieningspaneel"
click its UI element "spoel vooruit"
end tell
tell its menu bar 1
click its menu bar item "Huidig onderdeel"
end tell
end tell
end tell
I hope this will also work for you!
arf it wont work with youtube music since there is no skip 15s button in player right ?