2

From Apple KB - Use global keyboard shortcuts on Mac,

Note: You can create keyboard shortcuts only for existing menu commands. You cannot define keyboard shortcuts for general purpose tasks such as opening an app or switching between apps.

I want to know if there is a utility or a hack to make a shortcut for a particular app work even when the app is minimized. In my case, I am trying to assign a shortcut to OBS to start/stop recording even when minimized.

To explain better, consider this scenario. My active app is Firefox (or any other app). OBS is running in the background and is visible in the top menu bar. I press a shortcut key combination and OBS starts to record screen. Currently, this doesn't works if the active app is not OBS itself. The reason is, this shortcut is local to OBS. I want a way to assign it as a global shortcut.

2 Answers 2

1

It sounds like you want to switch to the OBS Studio App so you can switch scenes, etc.

You can use Automator to create a custom service to launch the application of choice and bind a global keyboard shortcut to do so.

  1. Open Automator, select New Document and Choose Quick Action (Service)
  2. In Workflow Receives (Service Receives) drop-down list select No Input
  3. Drag Launch Application from the Actions list to the right side
  4. Select the OBS App as the Launch Application
  5. Save the Automator Quick Action (Service) as "Launch OBS"
  6. In System Preferences -> Keyboard -> Shortcuts -> Services scroll down and find Launch OBS and set a keyboard shortcut for it.

This will open OBS and bring up the minimized window and it will unhide it as well.


There's a great deal of potential solutions that may be even more useful in controlling OBS. If you rethink your workflow a bit, the deeper problem is controlling OBS while you are streaming or recording. OBS has a websocket API and can be remotely controlled via a web browser but it can also be remotely controlled via iOS/iPad Apps as well as actual hardware controller boxes (stream deck or MIDI controller) with a myriad of programable buttons and dials to control OBS and a lot more. You can add an inexpensive second monitor, even an old iPad setup as a second monitor and put OBS on the iPad.

2
  • Thanks for the answer. But I don't want to launch/unhide OBS at all. I want it to start recording without opening its UI. OBS is running in background and the icon is there in the menu bar. If I open UI and then click the shortcut, recording starts. What I want is to do it, while its still in background. Jul 24, 2020 at 5:35
  • Then you need to refine your question. OBS Studio has a websocket interface and you can remote control it from another computer. Such as a smartphone, tablet, or other computer. OBS Remote is one of several solutions. As I alluded to, there's even hardware controllers with programmable buttons that use that websocket interface with OBS Studio. I can't recommend a specific vendor as it's against the Stack Exchange rules. Jul 25, 2020 at 13:28
0

It's difficult to configure your own automation scripts.

Just use the Snap app from the App Store.

Command 1-9 shortcuts will open the first 1-9 apps in you Dock.

You can change the modifier key command to option, control, shift or any combination of these 4 keys.

Here is a screenshot of the app. Snap app

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .