So I use the wonderful Atom to do all of my coding. It’s free, and open source, so if you haven’t looked into it, you definitely should.
Anyway, one of the issues I’m constantly running into is that I want to open an entire folder with Atom, and have the folder show up in Atom’s project explorer. Typically, I open up terminal, cd to the appropriate directory, and type atom . to open up my entire project. I messed around with Services a little bit and wrote a service that lets me right click on a folder to open the entire folder in Atom. If you want to skip the tutorial and just download the service, check it out on Github:
- Open up “Automator” on your Mac, create a new document, and choose “Service” for the type.
- In the top part of the right pane, choose “files or folders” next to “Service receives selected” and “Finder.app” to the right of that.
- In the “Actions” panel on the left side, type “open” to search for all actions that start with “open”. The action you want is called “Open Finder Items”.
- Drag the “Open Finder Items” action to the right side and drop it in the blank workflow section.
- Under “Open with” choose “Atom.app” (or Sublime.app or whatever text editor you use).
- Save your service and run it to install.
- Right click on a folder to open it in Atom.
That’s all it takes to build an Automator service to launch an application from finder. Let me know if you have any feedback, or suggestions.