Re: [Tutor] rename files

2007-01-10 Thread Kent Johnson
Christopher Spears wrote: > Is there a more elegant way to do this? I haven't > figure out how to convert stuff03 to STF.v03. Just replace 'stuff' with 'STF.v' instead of 'STF' ? Or am I missing something? You don't have to do the find(), you can just replace(); if the string being replaced is

[Tutor] rename files

2007-01-10 Thread Christopher Spears
I'm trying to write a script that will rename files. The files are in this format: replace_dashes_stuff03 I want to rename the files to replace.dashes.STF.v03 Here is what I have so far: #!/usr/bin/python import os,sys oldFile = sys.argv[1] if oldFile.find('_') != -1: print "Found

Re: [Tutor] Rename files with numbers

2005-11-01 Thread Ed Singleton
The best free app I've found for this is MusicBrainz [www.musicbrainz.com]. This has a huge database of obsessively correct details of albums which can be formatted in anyway you choose. It can automatically recognise which song an MP3 is! This is a similar script I wrote to renumber files in se

Re: [Tutor] Rename files with numbers

2005-11-01 Thread Ed Singleton
Sorry, wrong list. Many apologies. Ed On 01/11/05, Ed Singleton <[EMAIL PROTECTED]> wrote: > The best free app I've found for this is MusicBrainz [www.musicbrainz.com]. > > This has a huge database of obsessively correct details of albums > which can be formatted in anyway you choose. It can au