Using WIN32OLE to automate iTunes -- itunes.SetOptions(?)

I’m trying to get this automated system going for my iTunes through
win32ole, but I’m stuck at a certain point of ignorance.

require ‘win32ole’
itunes = WIN32OLE.new(‘iTunes.Application’)

It’s all good. But what I want to do involves more than just playing
songs and going through the library. I notice that of the many
WIN32OLE_METHOD objects in the array returned by itunes.ole_methods
there’s one named SetOptions.

I know that it takes one required parameter, labeled as
WIN32OLE_PARAM:options, but I can’t find anything helpful at all on what
this does, or how to pass stuff through the parameter. The only
tutorials I can find on iTunes control through win32ole all stem from
the 2 posts on rubonwindows.blogspot.com, one of which is excel, the
other of which goes into detail about the laughably obvious commands.
And of all the others, shouldn’t there be a little documentation on
these? Somebody had to write them all, right?

And I am NOT going to trial-and-error all day through irb with this.
This WILL affect my iTunes settings, unless someone had the bright idea
of making a method do something other than what it heavily implies on
the tin.

Okay, rant stage is over. I’m just mad I can’t find anything.

-hamstap85

Hameed Gifford wrote in post #1052958:

It’s all good. But what I want to do involves more than just playing
songs and going through the library.

What is it, exactly, that you want to do?

I’m just mad I can’t find anything.

Does that project have no good ruby bindings or no documentation?

For myself I have decided long ago that I do not use projects with bad
documentation, irrelevant of how good it would be.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs