From: Tim Hunter Date: 2009-03-21T22:50:55+09:00 Subject: Re: Run a Ruby script (.rbw) from a dock shortcut in Mac OS X (Leopard)? kpkilburn@gmail.com wrote: > I can't seem to find out how to do this... Thanks for any help. > > I have Ruby installed on my Mac (OS X Leopard) and it works fine from > the terminal window. I'd like to create a dock shortcut or be able to > just double-click the .rbw file to run it. When I click it, it just > brings up a window that shows the code rather than running it. > > Is there a way to put a shortcut down in the dock so I can just click > it to run the particular Ruby script (or click it from within > Finder)? > > Thanks. > > From the Finder, right-click and choose Get Info. On the Get Info window, use Open with to associate .rb files with ruby. Use Change All... to associate ruby with all .rb files. -- RMagick: http://rmagick.rubyforge.org/