require "rubygems" require 'rbosa' require "fastercsv" abook = OSA.app('Address Book') folks = [] abook.people.each do |guy| folks.push([ guy.first_name, guy.last_name, guy.emails.map { |e| e.value }.join(';')].to_csv ) end puts folks
Against entropy.
require "rubygems" require 'rbosa' require "fastercsv" abook = OSA.app('Address Book') folks = [] abook.people.each do |guy| folks.push([ guy.first_name, guy.last_name, guy.emails.map { |e| e.value }.join(';')].to_csv ) end puts folks