From ari at aribrown.com Wed Jul 11 18:00:06 2007 From: ari at aribrown.com (Ari Brown) Date: Wed, 11 Jul 2007 18:00:06 -0400 Subject: [Rubyosa-discuss] Installing rubyosa (and using Photoshop) Message-ID: Hey all, I am furiously trying to install rubyosa. But I keep getting this error! My goal is scripting Adobe Photoshop to do a photomerge. If anyone can help me, I'd worship them). I type: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'rbosa' dyld: NSLinkModule() error dyld: Symbol not found: _va_start Referenced from: /usr/local/lib/ruby/gems/1.8/gems/libxml- ruby-0.3.8.4/lib/xml/libxml_so.bundle Expected in: flat namespace Trace/BPT trap Bwah? I also get an error when I type: rdoc-osa error: dyld: NSLinkModule() error dyld: Symbol not found: _va_start Referenced from: /usr/local/lib/ruby/gems/1.8/gems/libxml- ruby-0.3.8.4/lib/xml/libxml_so.bundle Expected in: flat namespace Trace/BPT trap I'm dying here ~ Ari English is like a pseudo-random number generator - there are a bajillion rules to it, but nobody cares. From mlists at pmade.com Wed Jul 11 18:34:39 2007 From: mlists at pmade.com (Peter Jones) Date: Wed, 11 Jul 2007 15:34:39 -0700 Subject: [Rubyosa-discuss] Installing rubyosa (and using Photoshop) In-Reply-To: References: Message-ID: <20070711223439.GR10003@slim.pmade.com> Ari Brown wrote the following on Wed, Jul 11, 2007 at 06:00:06PM -0400: > dyld: NSLinkModule() error Please give us some additional details. What version of OS X are you running? What version of Ruby do you have installed? Thanks. -- Peter Jones http://pmade.com From boss at airbladesoftware.com Fri Jul 20 06:21:32 2007 From: boss at airbladesoftware.com (Andrew Stewart) Date: Fri, 20 Jul 2007 11:21:32 +0100 Subject: [Rubyosa-discuss] RubyOSA and Mail.app: Problem Replying to a Message Message-ID: Hello, I am trying to write a Ruby script to reply to a message in Mail.app. I want the script to find the selected message (assume only 1 is selected), pop open the reply window and tinker with the contents of the reply according to logic in my script. I can do the first two steps but not the final one. Unfortunately I cannot get a handle on the reply message because the method in question returns nil rather than the reply. Here's my code, based on the sample get_selected_mail.rb code, in an IRB session: >> require 'rbosa' => true >> OSA.utf8_strings = true => true >> mailApp = OSA.app('Mail') => OSA::Mail::Application:0xblah desc"'sign'($blah$)" >> selected_message = mailApp.message_viewers[0].selected_messages [0] # Assume only 1 selected => OSA::Mail::Message:0x23208cc desc"blah" >> reply = selected_message.reply true => nil That last command pops open a new window for the reply, which is great. But it does not return the reply message as the generated documentation says it should. And without the reply message object, I cannot tinker with its contents. Does anybody know how to solve this or achieve what I'm after differently? Thanks in advance. Regards, Andy Stewart From mac at casteel.org Mon Jul 30 23:26:22 2007 From: mac at casteel.org (Michael Casteel) Date: Mon, 30 Jul 2007 20:26:22 -0700 Subject: [Rubyosa-discuss] Direct object for commands (iTunes) Message-ID: I am very much in admiration of the rubyosa framework, which seems to be doing a great job of linking my ruby code with iTunes (for my home music remote-control app), with impressive performance. There seems to be one large problem using rubyosa with iTunes (besides having to write code to ensure it is running before trying to send it any commands), and that's with the iTunes application command 'reveal'. This may be a problem with the iTunes aete definition, or maybe rubyosa isn't properly handling this type of event. Trying to use 'reveal' with Script Editor lets me know that 'reveal' requires an object, e.g. a track/playlist (to be revealed). rubyosa won't let me pass a parameter to the reveal method, and I get no result if I try to use it. Any ideas? -- Mike Casteel Seattle, WA