I'm brand new to Alfred, and I'm trying to put together a complicated 'open this giant project with one keyword' workflow. I've been able to implement pieces of the workflow, but I haven't been able to cram everything into one alfred keyword, which is what I want.
I want to type the keyword 'couch' into alfred, hit enter, and have it do the following:
1. Open the 'my_couch' folder in sublime.
2. Open a terminal, navigate to the my_couch folder, and start the rails server.
3. Open a new terminal and start the Postgres server
4. Open google chrome, and have it navigate to 'localhost:3000'
This workflow opens up all the stuff I need to work on my ruby on rails project called 'couch.'
The broad, overarching question is 'Is this workflow possible in Alfred?'
Here are a couple more nitty gritty questions.
For step 1, I have been able to link the keyword 'couch {filename here}' with sublime, using the file-filter input object. I've limited it to search for folders, and then I feed the resulting folder into the Open File object, which then opens the folder in sublime. What bugs me about this workflow is that in order open the couch folder in sublime, I have to type 'couch my_couch,' where my_couch is the input folder. I don't want to have to specify the folder. I just want to type 'couch' and have it know that I want to open the couch folder in sublime.
For step 2, I have had zero luck using the terminal command object to do stuff. Is there a simple example workflow that shows how to get open a terminal and run 'echo "hello world"' to show how to open a terminal and run a script? Also, does it actually open a terminal window, run the script, and leave it open, or does it do it magically in the background? I would like it to open the terminal, run the script, and leave it open so that i can mess with stuff later.
Thank you!
Tara