Posted by Daniel Mon, 26 Mar 2007 02:48:00 GMT

Variations of this have been done before… but I couldn’t find a full blown example. In the meantime here’s the deal:

Dragging and dropping some files onto my Platypus script passes the file paths to a Ruby script that fires up WEBrick and runs a RoR app and then points the default browser to the right page. That’s as far as I’ve got this weekend.

Next, I’ll do what I need to process the files… and hopefully provide some nice UI in Rails… which is why I thought about doing it this way. We’ll see.

Anyway, firing up Rails was surprisingly tricky, but I knew from where to crib, so it wasn’t that bad. I chose WEBRick because it should keep the install to a minimum. If not, there’s always Mongrel.