How to get Alfred to run a terminal command and open one app twice?
-
30-04-2021 - |
Pregunta
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
?
Solución
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.
Otros consejos
If you have the PowerPack, you can create a workflow.
Workflows can run bash scripts in terminal, post notifications etc..
You can also just open Alfred and start with a '>' in front of your query.
More information: https://www.alfredapp.com/help/features/terminal/
Licenciado bajo: CC-BY-SA con atribución
No afiliado a apple.stackexchange