How to make OSX application that just runs opens some file type and runs arbitrary Ruby code?

Posted by taw on Stack Overflow See other posts from Stack Overflow or by taw
Published on 2010-03-14T16:52:46Z Indexed on 2010/03/14 16:55 UTC
Read the original article Hit count: 172

Filed under:
|

It's trivial to make a program executable from shell - just put #!/usr/bin/ruby on top, chmod +x it and done. Unfortunately OSX won't let me associate file type with such scripts - it requires its .apps instead. This sort of distinction doesn't seem to exist on other operating systems.

What's the simplest way of making such .app, which would merely execute some arbitrary Ruby code?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about osx