Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-12-04 Thread Dethe Elza
On 4-Dec-06, at 8:00 AM, Craig Amundsen wrote: > I've tried that. I'm trying to move my library from one external > Firewire > drive to an external RAID1 setup. Doing the consolidate moved about > 10% of > the files and then crapped out with an error that said something > about being > able

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-12-04 Thread Craig Amundsen
Hi - On Fri, Dec 01, 2006 at 07:45:38PM -0800, Craig Amundsen wrote: > >>> t.location.set(f) Yeah, you can't do this. If you look in the dictionary (for example, opening it in Script Editor), you'll see: location (alias, r/o) : the location of the file represented by this track The location

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-12-03 Thread Nicholas Riley
On Fri, Dec 01, 2006 at 07:45:38PM -0800, Craig Amundsen wrote: > >>> t.location.set(f) Yeah, you can't do this. If you look in the dictionary (for example, opening it in Script Editor), you'll see: location (alias, r/o) : the location of the file represented by this track The location property

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-12-01 Thread Craig Amundsen
Hi - I finally had time to play around with appscript, and can now get the list of tracks. For reasons I don't understand, if I try to get all the file_tracks in the library, iTunes shoots up to about 80% CPU utilization and never comes back, even if I set the timeout to 15 minutes. But if I put a

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 - I've now got it adding c

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-29 Thread Simon Brunning
On 11/28/06, Jamie Stuart <[EMAIL PROTECTED]> 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') H. Perhaps what the

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Nicholas Riley
On Tue, Nov 28, 2006 at 11:09:41AM -0800, Craig Amundsen wrote: > I've moved a bunch of my files around and rather than do the 1 at a time > showing iTunes the new location, I'd like to use appscript to set the > location of the moved songs to the new value. Just FYI if you don't know already, iTu

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Craig Amundsen
Hi - I've had an iTunes appscript question nagging at me, so I'll add another question... I've moved a bunch of my files around and rather than do the 1 at a time showing iTunes the new location, I'd like to use appscript to set the location of the moved songs to the new value. Based on my read

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 <[EMAIL PROTECTED]> wrote: >> Hi,

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Simon Brunning
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.

[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