From jdputsch at comcast.net Sat Oct 18 20:17:56 2008 From: jdputsch at comcast.net (Jeff Putsch) Date: Sat, 18 Oct 2008 17:17:56 -0700 Subject: [Rubyosa-discuss] Equivalent to Applescript's "using terms from" Message-ID: <97CF45F6-A637-4D08-8021-AD580FCC1EE5@comcast.net> I've got some applescript, the relevant portions of which look like this: tell application "Mail" set theMessages to selection repeat with theMessage in theMessages using terms from "MailTagsScriptingSupport" set theKeywords to keywords of theMessages -- do something with theKeywords end using terms from end repeat end tell I can do the following with RubyOSA: require 'rubygems' require 'rbosa' mailApp = OSA.app('Mail') viewers = mailApp.message_viewers viewers.each do |viewer| viewer.selected_messages.each do |message| # how do I do the "using terms from ...?" end end The question is, how do I perform the equivalent of "using terms from" in RubyOSA? Thanks, Jeff.