Administrating MacOS with a ruby

Hi I am looking for the equivalent of the Win32 ruby gems for MacOS, is there something like this, or would I need to just do system calls from Ruby.

Thanks!

Hi I am looking for the equivalent of the Win32 ruby gems for MacOS, is there something like this, or would I need to just do system calls from Ruby.

Thanks!

Not sure. What do the Win32 ruby gems do? Are they a way to script Windows from the Ruby environment? You might want to look at the MacRuby project, which allows you to create entire Mac applications in Ruby, using a two-way bridge between Ruby and Objective-C. But depending on what exactly you want to do, system calls may be all you need. Remember, most Macs will have at least 1.8.6 MRI, maybe 1.8.7 installed by default.

Walter

Not sure what the Win32 ruby gems do, but I know the latest version of the Macintosh developer tools (Xcode 4.2) have some support for running shell-based commands via AppleScript. MacRuby’s also a possibility. Depends upon what you need to do – and I’m not sure if you actually need Xcode or if the normal AppleScript works that way (or if it’s just Lion). I remember seeing it in a dev talk around when Lion and Xcode 4.2 were being released / discussed, so that’s why I’m not sure of the dependencies.

-Rholmes.