From: Bill Dolinar Date: 2007-08-01T11:58:35+09:00 Subject: Re: Running Ruby Program from Mac OS X Desktop On Jul 31, 2007, at 7:54 PM, Alex DeCaria wrote: > I have a Ruby program on my Mac desktop and when I double click on it, > it doesn't run the program...it just opens up the text editor. How > do I > make it run the program when I double click on it? > -- It kind of depends on what your looking for. If your wanting to run a script that has text IO on screen then you would probably want to run it through the terminal. If you want a GUI app then you probably want to check out RubyCocoa (http://rubycocoa.sourceforge.net/). If everything would happen in the background with no interface, it's possible to throw a ruby script in the application package and you could double click on it to start the script. For an example Xcode project check out http://billdolinar.com/files/SillyBalls.tgz. To get the sample to run you build the project from Xcode and then go to the "build/Release" folder within the project folder and double click on the built app. The script that's being run is in the SillyBalls file. To have your script run in the background you would want to turn on the LSBackgroundOnly property list key for the app bundle. Bill