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 <[EMAIL PROTECTED]> wrote: >> 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.apple.itunes') >> itunes.run() >> itunes.make(new=k.playlist, with_properties={k.name:'New Playlist'}) >> addfile = itunes.add(Alias (outputfile), to=itunes.playlists['New >> Playlist']) >> convertfile = itunes.convert(addfile) >> itunes.delete(addfile) >> >> >> The resultant mp3 file doesn't appear in the playlist - only in the >> library. > > Try creating the playlist with: > > my_playlist = itunes.make(new=k.user_playlist, > with_properties={k.name:'New Playlist'}) > > Does this help? > >> Also, how do I tag the files (title, artist, album?) as I can't >> see how this would be done. > > track.name.set('New name') > >> Another thing is how can I package up appscript so this thing can be >> distributed on CD-ROM? > > Sorry - you're on your own with this! > _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig