From: Joel Pearson Date: 2013-03-08T01:42:00+09:00 Subject: Re: Question regarding automating some Outlook/IMAP and pdf parsing functions w/ ruby? Here's a starting point for you. Once you have the object it's just a matter of looking up the APIs and documentation. It helps to do a bit of VBA because the IDE will suggest methods to you when you're working with certain objects. irb(main):001:0> require 'win32ole' => true irb(main):002:0> ol = WIN32OLE.connect 'outlook.application' => # irb(main):003:0> ol.application.activeexplorer.selection.each do |item| irb(main):004:1* puts item.subject irb(main):005:1> end test test test => nil -- Posted via http://www.ruby-forum.com/.