title: How to open a file in the Mac version of Eclipse?
body: <p>Goal: Under OSX, From the command line, open a file in eclipse.</p>
  
  <p>Environment:</p>
  
  <p>OSX 10.7
  Eclipse Indigo Java EE bundle (3.7.1)</p>
  
  <p>Expectation:</p>
  
  <ol>
  <li>cd to directory eclipse is installed from.</li>
  <li>run:
  ./eclipse --launcher.openFile notice.html</li>
  <li>Eclipse opens with the file 'notice.html' open/editable</li>
  </ol>
  
  <p>What happens:</p>
  
  <p>Eclipse opens but the file isn't loaded. :(</p>
  
  <p>I explicitly want to do this from the command line, I'm NOT interested in opening the file via Finder->Open With->Choose Eclipse.app</p>
  
  <p>Here is an article that seems to indicate that I should be able to do this:
  <a href="http://aniefer.blogspot.com/2010/05/opening-files-in-eclipse-from-command.html" rel="nofollow">http://aniefer.blogspot.com/2010/05/opening-files-in-eclipse-from-command.html</a></p>
  
  <p>If there is another way to communicate with an already open eclipse to open a file that would be acceptable as well.</p>
  
  <p>Eventually I'd like to use:</p>
  
  <p>open //path-to-Eclipse.app --args --launcher.openFile //path-to-file</p>
  
  <p>...to communicate my desire for the file to open in the current instance of the running eclipse.</p>
  
  <p>But for now I'm just trying to see if there is ANY way to open a file </p>
  
  <p>Anyone have any ideas?  </p>
  
  <p>Thanks in advance for any help/pointers :)</p>