[Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Jamie Stuart
Hi, I'm completely new to Python and something is evading me completely. I'm using appscript to add (and convert to mp3) a bunch of .aif files to iTunes. I also want to create a new playlist which they are all added to and then tagged. This is what I have at the moment: itunes = app(id='com.app

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Jamie Stuart
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') Simon Brunning wrote: > On 11/28/06, Jamie Stuart <[EMAI

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-29 Thread Jamie Stuart
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 <[EMAIL PROTECTED]> wrote: >> Thanks Simon