title: Sublime Text 2 Service
body: <p>I'm attempting to make an open in Sublime Text 2 service via Automator. </p>
  
  <p>I am doing this by:</p>
  
  <ul>
  <li>Running Automator</li>
  <li>Adding a new service</li>
  <li>Adding "Run Shell Script"</li>
  <li>Setting Shell to <code>/bin/zsh</code></li>
  <li>Entering a command line of: <code>/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl -n $@</code></li>
  <li>Setting "Service receives selected" to "files or folders"</li>
  <li>Click save</li>
  </ul>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/RoRjF.png" alt="enter image description here"></p>
  
  <p>However, whenever I try to open a folder via right-click > services > "Open in Sublime", a new ST2 window is opened but with a randomly named text file (ie subl stdin N188RN.txt) and it's output is the path of the folder opened (ie: /Users/me/Desktop/project).</p>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/oWemu.png" alt="enter image description here"></p>
  
  <p>Is there a way I can modify the automator command line to fix this?</p>