Jump to content

tlroys

Member
  • Posts

    2
  • Joined

  • Last visited

tlroys's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Thanks! This is great! Thank you for the prompt reply and the useful answer! It nearly worked. I had an issue with the open URL node until I realized that I told you to navigate to localhost:3000 instead of http://localhost:3000 Once I fixed that typo, swiched the folders to the proper folder, and substituted in the right commands, it works like a charm! Now instead of twenty clicks and several hundred characters to get my project up and running, I have seven keystrokes- one to open alfred, five to spell couch, and the enter key! I am now an Alfred convert. Here is the updated workflow. Now I'm all excited, and I have more questions. 1. Is there a way to tell Alfred not to open the URL until after the terminal commands have been run? As it stands, the website tries to open before the server starts running, so I have to hit the refresh button in my browser to actually show the page. Not a big issue, but it would be nice to be able to delay opening the website until there is actually a website to open. 2. Is there a way to open a folder in Sublime, and then have particular files open and ready to be edited in sublime? For example, I have a file in my couchs folder called App.js. I want App.js to be open in sublime when I open the folder in sublime. Again, thanks! Alfred is awesome! Cheers, Tara
  2. 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
×
×
  • Create New...