Bugs: Browse | Submit New | Admin
RubyOSA will not instantiate an application object for BBEdit. irb(main):001:0> require 'rbosa' => true irb(main):002:0> app = OSA.app("iTunes") => #<OSA::ITunes::Application:0x13090ac> irb(main):003:0> app = OSA.app("BBEdit") NameError: wrong constant name ¶OMD from /usr/local/lib/ruby/site_ruby/1.8/rbosa.rb:340:in `const_set' from /usr/local/lib/ruby/site_ruby/1.8/rbosa.rb:340:in `__app__' from /usr/local/lib/ruby/site_ruby/1.8/rbosa.rb:319:in `each' from /usr/local/lib/ruby/site_ruby/1.8/rbosa.rb:319:in `__app__' from /usr/local/lib/ruby/site_ruby/1.8/rbosa.rb:192:in `app_with_name' from /usr/local/lib/ruby/site_ruby/1.8/rbosa.rb:208:in `app' from (irb):3 BBEdit exists on the system in /Applications/BBEdit.app. The error also occurs when using the full /Applications/BBEdit.app path. I could not replicate this error with any other application. I am currently using SVN revision 96, latest as of this post.
Add A Comment:
Date: 2006-11-19 22:09 Sender: Laurent Sansonetti Fixed in r105.
Date: 2006-11-06 18:18 Sender: Laurent Sansonetti So, BBEdit has another bug, but this is not linked to the fact that its sdef has non-ASCII characters. This is valid and RubyOSA doesn't properly handle it. So, there are 2 bugs, one for RubyOSA and one for BBEdit :) I just updated the title for more clarity.
Date: 2006-10-30 16:12 Sender: Laurent Sansonetti Yeah, in fact I could manage to load the BBEdit's sdef as well, but the problem here is about non-ASCII characters used for method codes. For example the "run unix script" command, which I can't manage to get work using AppleScript.
Date: 2006-10-30 14:48 Sender: Jon Yurek FWIW, the Rb-AppScript project loads the sdef for BBEdit seemingly well enough. However, I can't seem to get the file object for a document using that, so maybe the issue is around there?
Date: 2006-10-26 22:01 Sender: Laurent Sansonetti The BBEdit's sdef is very suspect, it contains non-ASCII character for apple event codes (that at total are > 4 bytes). Eventually they name some constants with non-ASCII character that makes RubyOSA failing. I wonder if it works even in AppleScript. Trying to run the "run unix script" command always returns me an error inside AppleScript.