On a fine day, 02-06-2003, Hans Hafner wrote:
>At 9:28 Uhr +0200 02.06.2003, Hendrik Jan Veenstra wrote:
>>source = name + space + number + ".aif", and target = name + space +
>>note/octave + ".aif", turning "viola 12.aif" into "viola B2.aif" for
>>example. Naming should start with file number 1 = C1.
>>
>>If you can provide such a template (if the source names follow such a
>>template at all, which I hope for you), then I might be able to come
>>up with a script that does the renaming.
>
>I don't have a specific template unfortunately...
>
>but: if you write the script so it replaces a certain string in the
>name (lets take xnnn, where x is something that has to be there for
>the script to recognize that it should change from this point on, and
>nnn is the number that then gets translated to the keys from C1 up)
>then it should work for any filename, shouldn't it?
Hmm... not sure... Don't all files happen to end the same way? Like
<text><number> followed by ".aif" or something?
Of course the script could also be written such that it simply
appends 'C1' and the like to the end of the filename. Would that
suffice? This would potentially give files like "trumpet 1.aifC1"
though...
>I think this would be a very helpful utility! Thank you so much for
>suggesting this.
No problem... How about sending me a (part of) the directory listing
of your files in private mail (plain text preferred) -- take some
random samples from a couple of folders, so that I can see if I can
find any system in the names that would be useable.
--
Hendrik Jan Veenstra <h@...>
Omega Art: http://www.omega-art.com/