From eric at 5stops.com Mon May 7 23:28:24 2007 From: eric at 5stops.com (Eric Lindvall) Date: Mon, 7 May 2007 20:28:24 -0700 Subject: [Rubyosa-discuss] Creating dialogs Message-ID: <4e1e8c4f0705072028o3f0941cct87eb25ff8e3b5fb8@mail.gmail.com> I've noticed that StandardAdditions can be merged into any app and you can call #display_dialog. Is there a way to display a dialog that isn't in the context of a different app, replicating the "display dialog" functionality in Apple Script? From christopher.preston at csiro.au Wed May 30 22:00:52 2007 From: christopher.preston at csiro.au (Christopher Preston) Date: Thu, 31 May 2007 12:00:52 +1000 Subject: [Rubyosa-discuss] RubyOSA & Aperture Message-ID: Hi, I'm new to the RubyOSA game, but am interested in scripting Aperture. A search of the archive for this list reveals no previous activity with Aperture. Following the page at http://rubyosa.rubyforge.org/guide/generating- docs.html, I tried to see what info I could retrieve from Aperture, but get an error: ~/src $rdoc-osa --name Aperture /sw/bin/rdoc-osa:125: undefined method `name' for # (NoMethodError) (Note I've installed via Fink). Another problem is that Aperture defines a method called "id" for each ImageVersion. Trying to access that in Ruby is fraught, as you can imagine. Any help appreciated, Chris. From jeanpierre at gmail.com Wed May 30 22:52:29 2007 From: jeanpierre at gmail.com (jeanpierre at gmail.com) Date: Wed, 30 May 2007 19:52:29 -0700 Subject: [Rubyosa-discuss] RubyOSA & Aperture In-Reply-To: References: Message-ID: On 5/30/07, Christopher Preston wrote: > > Hi, > > I'm new to the RubyOSA game, but am interested in scripting Aperture. > A search of the archive for this list reveals no previous activity > with Aperture. > > Following the page at http://rubyosa.rubyforge.org/guide/generating- > docs.html, I tried to see what info I could retrieve from Aperture, > but get an error: > > ~/src $rdoc-osa --name Aperture > /sw/bin/rdoc-osa:125: undefined method `name' for > # (NoMethodError) > > (Note I've installed via Fink). thats strange, i tried running this command after installing from trunk and it kicked out the documentation - perhaps the version in fink is dated? Another problem is that Aperture defines a method called "id" for > each ImageVersion. Trying to access that in Ruby is fraught, as you > can imagine. i think rubyosa (at least sometimes) changes the method names to prevent collisions in some cases - you might try Class#id2 instead. cheers, jean-pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyosa-discuss/attachments/20070530/043f77fb/attachment.html From christopher.preston at csiro.au Thu May 31 22:48:34 2007 From: christopher.preston at csiro.au (Christopher Preston) Date: Fri, 1 Jun 2007 12:48:34 +1000 Subject: [Rubyosa-discuss] Adding Custom Tags to an image in Aperture Message-ID: <579B78D8-8164-451B-9A1F-8EFBDCE49EAE@csiro.au> Hi, me again! After discovering that the fink version of rubyosa is old, and installing the current version from svn (thanks, jean-pierre!), Aperture and I have been having a chat via RubyOSA. I have found that there is a OSA::Aperture::CustomTag value= method, but no name= method! I know in Applescript you can set a new custom tag like: make new custom tag with properties {name:"newtag", value:"newval"} and also make new IPTC tag with properties {name:"newtag", value:"newval"} so I figured something like... selection = OSA.app('Aperture').selection ct = OSA::Aperture::CustomTag.new ct.name="newtag" ct.value="newval" selection[0].custom_tags << ct #adding to the first selected image version selection[0].save ...should work, but without the name= method it's a bit difficult. Is there any reason the name= method doesn't exist? Can I add it? Is there a better way? Otherwise. what would the RubyOSA equivalent of "make new custom tags"? Cheers, Chris. PS. The traffic on this list is astounding ;-)