From: hengist podd Date: 2009-04-28T21:00:00+09:00 Subject: Re: Trouble with OSA and Excel Robert Schaaf wrote: > Hello all, > > This week's agony is with rdoc-osa and Excel 2008. I'm trying to > create the documentation files, but the program hangs. I suspect a > faulty AE dictionary. Most application dictionaries are not 100% perfect. AppleScript only uses the keyword-AE code mappings and ignores everything else, so any imperfections in the parts that AppleScript doesn't use often go unnoticed by application developers since everything works fine when tested in AppleScript. Other bridges that do rely on parts of dictionaries that AppleScript ignores (e.g. RubyOSA, Scripting Bridge) are far more sensitive to such minor imperfections, and therefore much more likely to partly or completely break on them. Also note that RubyOSA ceased development about 18 months ago, so it may or may not work with more recent Ruby releases. Your best bet would be to use rb-appscript (see my sig), which works much more like AppleScript so is a lot less prone to compatibility problems than RubyOSA or SB. Matt Neuburg wrote a good article a couple years back on rb-appscript that includes an example of Excel scripting: http://www.macdevcenter.com/pub/a/mac/2007/02/27/replacing-applescript-with-ruby.html Documentation generation and code translation tools are at: http://appscript.sourceforge.net/tools.html HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net -- Posted via http://www.ruby-forum.com/.