Jump to content

Pause Tabs — Pause audio and video in web browser tabs


Recommended Posts

Tried with all extensions disabled on Chrome > restarted browser > Tried the link I pasted above (and others as well) > used pauseall/pause others keyword with tab in foreground and background

 

Log

 

[20:45:07.572] Pause Tabs[Keyword] Processing complete
[20:45:07.576] Pause Tabs[Keyword] Passing output '' to Arg and Vars
[20:45:07.577] Pause Tabs[Arg and Vars] Processing complete
[20:45:07.578] Pause Tabs[Arg and Vars] Passing output '' to Automation Task
[20:45:07.579] Pause Tabs[Automation Task] Running task 'Identify Frontmost App' with no arguments
[20:45:07.868] Pause Tabs[Automation Task] Processing complete
[20:45:07.869] Pause Tabs[Automation Task] Passing output 'Alfred Preferences' to Arg and Vars
[20:45:07.874] Pause Tabs[Arg and Vars] Processing complete
[20:45:07.875] Pause Tabs[Arg and Vars] Passing output '' to Run Script
[20:45:08.272] Pause Tabs[Run Script] Processing complete
[20:45:08.277] Pause Tabs[Run Script] Passing output 'Brave Browser,Google Chrome
' to Transform
[20:45:08.278] Pause Tabs[Transform] Processing complete
[20:45:08.279] Pause Tabs[Transform] Passing output 'Brave Browser,Google Chrome' to Arg and Vars
[20:45:08.280] Pause Tabs[Arg and Vars] Processing complete
[20:45:08.281] Pause Tabs[Arg and Vars] Passing output '' to Run Script
[20:46:29.971] ERROR: Pause Tabs[Run Script] /Users/<USER>/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D19A3B28-F1D3-47B1-8DFA-D932051BA08A: execution error: Error: Error: AppleEvent timed out. (-1712)
[20:46:29.977] Pause Tabs[Run Script] Processing complete
[20:46:29.979] Pause Tabs[Run Script] Passing output '' to Run Script
[20:48:30.224] ERROR: Pause Tabs[Run Script] /Users/<USER>/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D19A3B28-F1D3-47B1-8DFA-D932051BA08A: execution error: Error: Error: AppleEvent timed out. (-1712)
[20:48:30.230] Pause Tabs[Run Script] Processing complete
[20:48:30.232] Pause Tabs[Run Script] Passing output '' to Run Script
[20:50:30.470] ERROR: Pause Tabs[Run Script] /Users/<USER>/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D19A3B28-F1D3-47B1-8DFA-D932051BA08A: execution error: Error: Error: AppleEvent timed out. (-1712)
[20:50:30.472] Pause Tabs[Run Script] Processing complete
[20:50:30.477] Pause Tabs[Run Script] Passing output '' to Run Script

 

Edited by andy4222
Link to comment

The issue with questions like this, which affect a single person, is that they’re hard to debug because it’s bound to be something on your side that is misbehaving. With macOS’ stability declining, it’s difficult to say if the cause is an esoteric configuration you set or a bug.

 

Try making a new temporary user account and testing there. Success or failure in that situation can give important clues.

Link to comment
  • 4 weeks later...
  • 4 weeks later...

Muting the audio is a different thing. That can be done via the menubar, so you can go to System Settings → Keyboard → Keyboard Shortcuts… → App Shortcuts and add specific shortcuts for those options. With a Dispatch Key Combo Output, you can trigger those any way you want (e.g. keyword).


Clicking the right menu items can be automated but it depends on your system language. I do have an idea to assist with that but it needs to bake some more.

Link to comment
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...