From: Tim Hoolihan Date: 2006-07-07T00:24:18+09:00 Subject: Re: A newbie would like some code criticism, please... I'm trying to test the itunes code but can't get it to work? Even the following script errors out: #test itunes with ole require 'win32ole' itunes= WIN32OLE.new('iTunes.Application') puts itunes.ole_methods The error is: C:\tools\scripts\test>ruby itunes.rb itunes.rb:4:in `ole_methods': Failed to GetTypeInfo (RuntimeError) HRESULT error code:0x8002801d Library not registered. from itunes.rb:4 While ole works fine, because I can run: require 'win32ole' excel= WIN32OLE.new('excel.application') puts excel.ole_methods excel['Visible']=TRUE wb = excel.Workbooks.Add() sleep 10 excel.quit Any ideas? -Tim