From: Jay McGavren Date: 2007-04-11T17:10:04+09:00 Subject: Re: Procs vs. nested methods and variable scope... On Apr 10, 3:50 pm, Gary Wright wrote: > On Apr 10, 2007, at 3:45 PM, Jay McGavren wrote: > > if (results = playlist.Search(terms, 0)) > > results.each {|track| tracks.push(track)} > > end ... > What is that second argument to Search? Is it just an index of > some sort such that 'find' is the first search (index 0) and > 'visible-find' is the second search (index 1) and so on? Also, > it is a bit strange to have a method capitalized. playlist is actually a WIN32OLE object (type iTunes.Application), and that's the form the generated methods took. The numbers/field ID would actually be a constant with an English name ('search all fields' or similar in this case) if we were working in C++ and had imported a header file. Anyway, thanks for the pointers; I'll look 'em over and see what I can incorporate.