My personal Renamer Program has been tweaked. Check it out [w/ screenshots]

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

bizmark

Banned
Feb 4, 2002
2,311
0
0
Pretty cool program! Feature request: Simply appending something to the beginning or end of the filename ("end" excluding the part after the period, of course). E.g:

01.jpg =>red01.jpg

or

01.jpg=>01red.jpg

(tryin' to organize my pr0n :D)

or is this already do-able somehow?
 

bugsysiegel

Golden Member
Jan 11, 2001
1,213
1
81
I like it! pretty fast too, burned through about 150 screwey names in about 3 seconds. :)
 

thereds

Diamond Member
Apr 4, 2000
7,886
0
0


<< Pretty cool program! Feature request: Simply appending something to the beginning or end of the filename ("end" excluding the part after the period, of course). E.g:

01.jpg =>red01.jpg

or

01.jpg=>01red.jpg

(tryin' to organize my pr0n :D)

or is this already do-able somehow?
>>



LOL! No, its probably not doable. Well, I'd have to hard code this don't you think.

Because I'd have to assume that the last two numbers are always numeric and then move it to the front, which shouldn't be hard to do. But I hate hardcoding stuff.

Or I could always look for numbers before the period and move that to the front....that make sense? LMK!



<< I like it! pretty fast too, burned through about 150 screwey names in about 3 seconds >>


Sweet. That'll be two pennies. :)
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0


<< Simply appending something to the beginning or end of the filename ("end" excluding the part after the period, of course). E.g:
(tryin' to organize my pr0n )
>>



I had written something like this a while back to eliminate duplicate images for some websites we had on our production system. The program would scan a directory tree, and do comparisons of all .jpg/.gif files based on *content*, not just the filename. It would analyze the jpeg/gif header to pick the one of highest quality, etc.
 

bizmark

Banned
Feb 4, 2002
2,311
0
0


<<
LOL! No, its probably not doable. Well, I'd have to hard code this don't you think.

Because I'd have to assume that the last two numbers are always numeric and then move it to the front, which shouldn't be hard to do. But I hate hardcoding stuff.

Or I could always look for numbers before the period and move that to the front....that make sense? LMK!
>>



Well, I don't know the language that you're using, but it seems that it'd be fairly simple to just specify that you'd add it at the beginning of the filename, or at the end. So instead of just replacing something, you're just adding it to the beginning or the end.Not just for numbers, either. Like if I had four directories of house photos, each taken on different days, e.g. Mon, Tues, Wed, and Thurs are my directories, and in each of those directories I have house01, house02, house03, etc., then I would go into the Mon directory and change everything into Monhouse01, Monhouse02, etc....

This also has implications for MP3's. Say a friend of mine has his MP3s arranged in directories by artist and/or album, e.g. for a filename "Billy Joel\My Life.mp3", and we want to go in and change all of the filenames to "Billy Joel - My Life.mp3", for example. Just add the "Billy Joel - " part to the beginning of the filename.

This would probably require an extra checkbox or something, right above "Replace". You'd leave the "Replace" box empty, and check the "Append to Front" or "Append to back" checkbox, and then type whatever you want appended, into the "with" box. Or, alternatively, some specific code (how about "\FRONT\" or something) placed into the "Replace" box would specify that the text in "with" was to be placed at the front of the filename.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
regular expressions are used for matching text.

Say you wanted to find a string that fit this pattern: Wednesday, May 25, 2002. But you wanted it to work with any date.
You could do this: [A-Za-Z]+, [A-Za-Z]+ [0-9]+, [0-9]+

And it will match a bunch of letters, follwed by ", " then a bunch more letters, a space, a bunch of numbers, ", " and a bunch of numbers. That would match any date in the format above. Then you could repalce the date with something else, or even rearange the things you matched in the date. (if you put things in parentheses, you can use them later on).

so, you use: ([A-Za-Z]+), [A-Za-Z]+ ([0-9]+), [0-9]+

and replace it with $1 $2.
The $1 corresponds to the first parentheses, and the $2 corresponds to the second parenthses. so, if oyu had the string "Wednesday, May 25, 2002" and did:
replace ([A-Za-Z]+), [A-Za-Z]+ ([0-9]+), [0-9]+
with $1 $2.

your output string would be "Wednesday 25"

There's a lot more to regular expressions, and I can't get into all of it here, but they're VERY useful, and quite well supported in a unix environment.
 

thereds

Diamond Member
Apr 4, 2000
7,886
0
0
Ah yes, wbwither, good idea. I'll work on that.

notfred, those expressions eh? I'll think on those and if I get time work on that too.

:)
 

SinNisTeR

Diamond Member
Jan 3, 2001
3,570
0
0
oh man, thats sweet! exactly what me and my friend needed. THANK YOU SOOOOOO MUCH!!!!!!!!!!!!!! :):):):)
 

dieselstation

Golden Member
Feb 20, 2001
1,388
0
0
how hard would it be to make it capitalize the first letter or a word in the file name? example:

nirvana - smells like teen spirit.mp3 -> Nirvana - Smells Like Teen Spirit.mp3
 

thereds

Diamond Member
Apr 4, 2000
7,886
0
0


<< how hard would it be to make it capitalize the first letter or a word in the file name? example:

nirvana - smells like teen spirit.mp3 -> Nirvana - Smells Like Teen Spirit.mp3
>>



It already does capitalization.



<< oh man, thats sweet! exactly what me and my friend needed. THANK YOU SOOOOOO MUCH!!!!!!!!!!!!!! >>



You're welcome.
 

thereds

Diamond Member
Apr 4, 2000
7,886
0
0
Originally posted by: dieselstation
how hard would it be to make it capitalize the first letter or a word in the file name? example:

nirvana - smells like teen spirit.mp3 -> Nirvana - Smells Like Teen Spirit.mp3

Check Capitalize in the Manipulate group and you show have what you want.
 

MeanMeosh

Diamond Member
Apr 18, 2001
3,805
1
0
hey, can you send me a copy as well??? i could use this...

thanks in advance :)

Edit: next time i'll read the entire post :eek:
 

thereds

Diamond Member
Apr 4, 2000
7,886
0
0
Originally posted by: MeanMeosh
hey, can you send me a copy as well??? i could use this...

thanks in advance :)

Couple of guys here have it up on an FTP site.