title: Mac OS X app/service and stdin?
body: <p>I'm debugging a service I'm developing, which basically will open my .app and pass it some data to stdin. But it doesn't seem like it's possible to something like:</p>
  
  <pre><code>open -a myapp.app &lt; foo_in.txt
  </code></pre>
  
  <p>Is it possible to pass stuff to an .app's stdin at all?</p>
  
  <p><strong>Edit</strong>:
  Sorry, I should have posted this on SO and been more clear. What I'm trying to do is that I have an app made in Python + py2app. I want to be able to handle both when a user drops a file, and use it as a service. The first case isn't a problem since py2app has <code>argv_emulation</code>. I just check if the first argument is a path.</p>
  
  <p>But reading from stdin doesn't work at all, it doesn't read any data regardless if I do as the example above or pipe it. If I pass stdin data to the actual python main script, it works. So I rephrase my question, is it possible to read from stdin with a py2app bundle?</p>