I have 3 open VLC windows and whenever I see movement in one I need to pause all of them at once. Ideally I'd like a keyboard shortcut to do this. I tried AppleScript but I'm not familiar with the language and I can't see how to iterate through all processes of an application and tell each one individually.
How to play or pause multiple instances of VLC simultaneously
applescriptkeyboardvlc
Related Question
- VLC – Playing Folder with Right Button on Mac Finder
- MacOS – How to change system “Hide All” keyboard shortcut
- MacOS – How to open new windows as separate application instances for Chrome, Terminal
- YouTube – Shortcut or Applescript for Pausing Videos
- PowerPoint AppleScript: How to set Play = Automatically for a media2 movie shape
- AppleScript to Close All Open Windows – How to Guide
Best Answer
This will check for all instances of VLC and pause any of the instances that are currently playing something. Let me know if something unexpected happens! To create the shortcut, follow these steps:
Open Automator and create an Service, with a single Run AppleScript action, containing the following code:
Set the service to receive "no input" and to work in "VLC" or "any application", if you want to ensure you can use the shortcut from anywhere. Save it with a name of your choosing.
That's it! You should now have a service set up, tied to the shortcut you chose that can be accessed from anywhere.