Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/

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

share|improve this question
up vote 6 down vote accepted

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

Now Alfred should find that app if you type vlcnew.

share|improve this answer
Solves my problem, thanks! – Phil Apr 6 '14 at 14:01
Hi @Phil consider marking the answer as correct if it is ok. – lnjuanj Apr 27 at 16:53

If you have the PowerPack, you can create a workflow.

Workflows can run bash scripts in terminal, post notifications etc..

Alfred workflow window

share|improve this answer

Now you can also run a Terminal Command using Powerpack.

  1. Create a "Blank Workflow"
  2. On the top right corner, click on the plus sign and choose the trigger you want.
  3. Click the same plus sign and now choose Actions -> Terminal Command and type whatever command you would like to run

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.