From: Kaldrenon Date: 2008-07-22T02:54:38+09:00 Subject: Re: system admin script On Jul 19, 10:10 pm, Ott Mr wrote: > i am trying to find a good scripting language for Mac OS X. I was told > ruby would be a good choice. Before i dedicate my time to learning it I > have to find out a couple of things. > > Can you run ruby form the GUI? i.e double click it . I don't want users > to have to go to the terminal. > > Here is an example of what i would like to do. We use a package builder > to customize installs. The only part that it can't do is user related > preferences and library files. Which means we(IT department) have to > copy the files. It is easy to do and it only takes about 3mins. But it > would be nice if i could just double click a script and have it take > 5sec. Is this something I can do with ruby? > > I am more concerned with running it from a GUI. If I can't do that I > might as well stick to shell scripts because I can call them from apple > script which I can run form the GUI. Plus I already know shell > scripting. 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"