MacOS – Running Terminal Command and Opening App Twice with Alfred

alfredapplicationsmacmacosterminal

I often need to run multiple copies of an app, like VLC.
For this I use the terminal and run a command similar to:

open -n /Applications/VLC.app

How can I create a shortcut with Alfred to run this one command if I type a keyword like vlcnew?

Best Answer

I don't see a feature in Alfred that looks like it will enable that directly (though I might have missed it).

You can:

  1. open Automator
  2. create a new application
  3. add the "Run Shell Script" action
  4. paste in your command
  5. Select "Save..." from the file menu
  6. name it vlcnew.app

Now Alfred should find that app if you type vlcnew.