Please note that appscript is no longer developed or supported, and its use is not recommended for new projects. Ruby appscript (rb-appscript) is a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications using ordinary Ruby scripts. For example, to get the value of the first paragraph of the document named "ReadMe" in TextEdit: app('TextEdit').docum