[Pythonmac-SIG] controlling iTunes with appscript

Jamie Stuart jamie at eurotalk.com
Wed Nov 29 17:12:19 CET 2006


It seems that itunes.convert returns a list of all of the converted 
tracks, therefore, I needed to do:

convertfile[0].name.set('New Title')

since I have a single-element list.

Simon Brunning wrote:
> On 11/28/06, Jamie Stuart <jamie at eurotalk.com> wrote:
>> Thanks Simon - I've now got it adding correctly to the playlist but
>> still can't seem to set the track name. This is what I was attempting:
>>
>> convertfile = itunes.convert(addfile)
>> convertfile.name.set('New Title')
> 
> Hmmmm. Perhaps what the convert function returns isn't a track? I'm in
> meetings all day today, but I'll have a look when I get the chance.
> (The referenced for all this stuff is viewable through XCode, BTW.
> Open up XCode, select File, Open Dictionary, then iTunes, and the
> reference is there.)
> 


More information about the Pythonmac-SIG mailing list