From: John Joyce Date: 2008-07-20T23:47:00+09:00 Subject: Re: system admin script On Jul 20, 2008, at 9:32 AM, John Joyce wrote: > > On Jul 19, 2008, at 9: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. >> -- >> Posted via http://www.ruby-forum.com/. >> Leopard's Automator has a nice tool as well... in Automator, choose Actions > Utilities > Run Shell Script and your work flow is almost done. The "Run Shell Script" workflow includes Ruby in its list. (as well as each shell and python and perl)