From: Vince Angeloni Date: 2008-07-21T23:28:30+09:00 Subject: Re: system admin script 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 frorm the GUI? i.e double click it . I don't want users > to have to go to the terminal. You can use "Platypus" to wrap ruby and shell scripts in a nice double clickable wrapper. http://www.sveinbjorn.org/platypus Keep in mind that if you require a user interface with buttons and menus, you will need to script all that in ruby using one of the gui add-ons. Or, if you only require a limited user interaction, similar to what one could do in applescript, then you could use rb-appscript to access the Applescript scripting additions which provide for such interactions. > > 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? Yes, you could do this with ruby, but also with plain Applescript. Or a shell script with Platypus wrapper.... I'm not sure ruby provides a big advantage here... vince -- Posted via http://www.ruby-forum.com/.