Apple - How to get Alfred to run a terminal command and open one app twice?
If you have the PowerPack, you can create a workflow.
Workflows can run bash scripts in terminal, post notifications etc..
I don't see a feature in Alfred that looks like it will enable that directly (though I might have missed it).
You can:
- open Automator
- create a new application
- add the "Run Shell Script" action
- paste in your command
- Select "Save..." from the file menu
- name it vlcnew.app
Now Alfred should find that app if you type vlcnew.
Now you can also run a Terminal Command using Powerpack.
- Create a "Blank Workflow"
- On the top right corner, click on the plus sign and choose the trigger you want.
- Click the same plus sign and now choose Actions -> Terminal Command and type whatever command you would like to run