Re: hlep: a text search and rename question

2009-01-12 Thread Steve Holden
sensen wrote: > On Jan 12, 10:41 pm, sensen wrote: >> both above works well, but a problem is renamed file is without >> filename extension. >> >> only change to the title. >> >> for example, the origin file is track_1.flac, after run the script i >> want it to for example, White Flag.flac, but no

Re: hlep: a text search and rename question

2009-01-12 Thread sensen
On Jan 12, 10:41 pm, sensen wrote: > both above works well, but a problem is renamed file is without > filename extension. > > only change to the title. > > for example, the origin file is track_1.flac, after run the script i > want it to for example, White Flag.flac, but now it change to White >

Re: hlep: a text search and rename question

2009-01-12 Thread sensen
both above works well, but a problem is renamed file is without filename extension. only change to the title. for example, the origin file is track_1.flac, after run the script i want it to for example, White Flag.flac, but now it change to White Flag without extension. could you do a favor to f

Re: hlep: a text search and rename question

2009-01-12 Thread sensen
On Jan 12, 8:17 pm, James Stroud wrote: > James Stroud wrote: > > cue = iter(open('CDImage.cue').readlines()) > > It just occurred to me that this could simply be: > > cue = open('CDImage.cue') > > James > > -- > James Stroud > UCLA-DOE Institute for Genomics and Proteomics > Box 951570 > Los Ange

Re: hlep: a text search and rename question

2009-01-12 Thread James Stroud
James Stroud wrote: cue = iter(open('CDImage.cue').readlines()) It just occurred to me that this could simply be: cue = open('CDImage.cue') James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com -- http://mail.python

Re: hlep: a text search and rename question

2009-01-12 Thread James Stroud
sensen wrote: matter description: when a use an tools to do the ape to flac convert, i can use the cue file attached with ape, but the problem is the converted flac file don't name by the title in the cue file but like Track_1.flac, Track_2.flac ... , so i want to write a script to do this work,

hlep: a text search and rename question

2009-01-11 Thread sensen
matter description: when a use an tools to do the ape to flac convert, i can use the cue file attached with ape, but the problem is the converted flac file don't name by the title in the cue file but like Track_1.flac, Track_2.flac ... , so i want to write a script to do this work, system is xp sp