Simple Applescript for toggling Play/Pause in Firefox?
First off, while streaming a radio station's web site the F8 key works as it should when I tap it. Trying to add clock radio function in my Macbook Pro running Catalina. Reck'n Automator can set a time to run an Applescript like the below, if I can get past it. With it I get no action and the system alert sound, but it does compile.
tell application "System Events"
key code 100
end tell
I have AppleScript and Firefox allowed in Accessibility in the Security & Privacy preference panel. I have abandoned apps like Tune-In, for they now arbitrarily insert commercials into songs. I only stream directly from a station's web site now, so this script must work in FireFox.
Dave
MacBook Pro 13″, macOS 10.15