Scripting Mac Applications with Ruby

· by · News

For those whoid like to explore alternatives to AppleScript, the OiReilly Mac devcenter has posted an article Tuesday by Matt Neuburg on how to script Mac applications with Ruby. Often, programmers with Unix experience in Perl, Python or Ruby come to the Mac, are unaccustomed to AppleScript and looking for familar ground.

It all started when Hamish Sanderson developed an interface to AppleScript with Python, called Appscript. Then, work continued to develop the same kind of interface to Ruby, called rb-appscript.

The author explained, "It would be a waste of space for me to describe the Ruby language or to argue its virtues. Letis just stipulate, once again, that many people find Rubyis linguistic and conceptual world a powerful and satisfying place for programming."

For those who already know Ruby, the key details of getting it installed and the classic "Hello World" program were explained.

Mr. Neuburgis conclusion was, "Finding an alternative way of sending Apple events is not merely a matter of petulant impatience with the AppleScript language, it may very well be the path to the future."

John Martellaro

John Martellaro

John Martellaro was born at an early age and began writing about computers soon after that. He is a former U.S. Air Force officer and has worked for NASA, White Sands Missile Range, Lockheed Martin Astronautics, the Oak Ridge National Laboratory and Apple. At Apple he worked as a Senior Marketing Manager, a Federal Account Executive and a High Performance Computing manager. His interests include skiing, chess, science fiction and astronomy. You can follow John on Twitter at twitter.com/jmartellaro.

Sign Up for the Newsletter

Enter a valid email address

Join the TMO Express Daily Newsletter to get the latest Mac headlines in your e-mail every weekday.

Adding to list…

No Comments

Log-in to comment