From: Louis-Philippe Date: 2009-03-24T00:09:11+09:00 Subject: Re: Run a Ruby script (.rbw) from a dock shortcut in Mac OS X (Leopard)? --0016e6475f1af1f0f00465cab058 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit ok, here is two quick options, both have limitations but they work to some point: if you don't need a terminal output for your app, create a folder hierarchy around it to make it a ruby app like this: appname.rb.app/Contents/MacOS/your_excutable_script.rb the .rb.app seems to be the important detail not to forget in here. or, if you need a terminal display for your app, you can always drop your .command (a said in my previous answer) in the document part of your dock (if you are on Leopard) and then clicking it will open a terminal and run it. L-P 2009/3/23 Louis-Philippe > Well, rats. I can find ruby but OS X doesn't think it qualifies as an > "Application". > Well, it doesn't need to, the Terminal is an application, so given you put > a shebang line on top of your program and make your file executable it could > work... if you want to go arround having to change the file association for > ruby files, change the extension to .command and it will open up and execute > in the terminal. > > this only solves half of the problem though, you can click it, but still > can't put it in the dock. > > L-P > 2009/3/22 > >> Thanks everyone. I'll give these a try. >> >> >> > --0016e6475f1af1f0f00465cab058--