From: Louis-Philippe Date: 2008-12-31T02:38:26+09:00 Subject: Re: system admin script ------=_Part_155884_3337831.1230658739568 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline very simply, you need to make your script shell executable. 1 - Put a shebang line as the first line of your script: #!/usr/bin/env rub= y 2 - make your script executable, with something like 'chmod a+x ./your_file.rb' in the shell 3 - then to make it clickable, change its extension from .rb to .command. voil=E0! 2008/12/30 Mohit Sindhwani > Kaldrenon wrote: > >> I'm not a MacOS user, so I don't know much about this, but does MacOS >> X have something equivalent to Windows' batch files? In Windows, you >> could make any ruby program double-click executable by making a file >> called [program_name.bat] and giving it the line "ruby path >> \program_name.rb" >> >> > > This is probably one of the few times I've seen someone say "does XYZ hav= e > an equivalent to this Windows ability?" :) > > Since I'm still on Windows quite often (due to reasons I don't wish to > detail), it's nice to see :) > > Cheers, > Mohit. > 12/31/2008 | 12:00 AM. > > > ------=_Part_155884_3337831.1230658739568--