DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: IDEA: Find filenames/folders above certain length and offer to rename them  (Read 141,852 times)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
try this then -

EDIT - removed some pesky debugging code
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
« Last Edit: March 27, 2009, 05:19 AM by Target »

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
try this then -

EDIT - removed some pesky debugging code

Nice interface option for mid!
The sequence below seems to indicate that Start Pos isn't respected.

Example
Pre.png Set.png Post.png

[Edit] P.S. You can see from the result just how much difficulty I have trying to count characters in the selection window. It is why I was hoping for some kind of highlight display in that window, in order to show which characters are affected by the spinners. I just don't have that many fingers and I can't use toes because I practice safe socks.
Chris
« Last Edit: March 27, 2009, 03:31 PM by cranioscopical »

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
I'll look at it over the next couple of weeks (hopefully)

and I'm thinking about your preview request, maybe if I...

The really interesting part of this exercise (for me, and quite apart from the learning experience) has been the realisation that the development process is really about the details - getting a rough working solution is relatively easy (!!) but it's all the little things that take the time (both to implement and to troubleshoot) 
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Quote
The really interesting part of this exercise (for me, and quite apart from the learning experience) has been the realisation that the development process is really about the details - getting a rough working solution is relatively easy (!!) but it's all the little things that take the time (both to implement and to troubleshoot)

absolutely true.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
I'll look at it over the next couple of weeks (hopefully)
Oh, I hope you won't. I'd like to think you'll be far too busy enjoying your holiday!

Chris

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
getting a rough working solution is relatively easy (!!) but it's all the little things that take the time (both to implement and to troubleshoot)
Now there's a metaphor for life as I know it  :)

Chris

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
I think 'we' are asking for too much for this app and making the project terribly difficult! Why not simply make an app that will find all the files in question and pass them on to (a virtual folder and-) my default renamer which has been developed and fine tuned for several years?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
just for the record, my original request was fulfilled by skwire here. at the same time, Target is keen to practise his AHK programming skill, so he has expanded the original request into a mini-renamer, so to speak. do try out his program as well and if possible, give some feedback to help him out. :)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
an update - I fixed the mid functionality (my bad syntax!!) and I'm working on the MRU (a bit here, a bit there...). 

Resizing the GUI is now possible thanks to Skwire (for incorporating the functionality via Titans's anchor script)

And you can now also load as many folders as you like (though I expect some common sense will apply here...).

Curt - it was never my intention to produce anything like what this seems to have become - I'm not a coder, so these things are an opportunity for me to learn.  There are already many (many!) well crafted and highly capable renaming apps available (I have and use several myself) and I am under no illusion that this is going to turn into a killer tool (or even a capable tool!!).  In fact, I would be surprised indeed if anyone even used it at all (even I probably won't), but that's not the point.  The sheer number of views this thread has generated would indicate that others are getting something out of it as well, though I have no idea what  :o

And if your going to recommend a piece of software (yours or someone else's) it's nice to at least include a name (I couldn't google it 'cos I didn't know what I was looking for) or a link (I visited your website but I don't speak Danish so it didn't help much either...)
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
it was never my intention to produce anything like what this seems to have become - I'm not a coder
Hahaha...yes, you are!  This is how it starts.  =] =] =]

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Hi Target,

Aren't you supposed to be on vacation?  :)

As the mop-heads said,
"I've got to admit it's getting better
A little better all the time".

There's something a smidgen short of perfection in the 'undo/Go Back' operation. 
The undo itself looks good but, on 'Go Back' the list is populated multiple times.

Get Back.png

Chris

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Resizing the GUI is now possible thanks to Skwire

Thanks to both of you!

Possible to resize the undo panel at some point?  Attachment shows why...

WichIsWhich.png

Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
what can I say (I can't stay away!!!)

resize should be easy, and I'll look into the other when I have the opportunity
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
another update, in case anyones interested...

fixed the aforementioned error, and added a dropdown list that shows the loaded folders (you can delete from this list as well)

still haven't made much progress on the MRU, but I'm not done quite yet...
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
another update, in case anyones interested...

fixed the aforementioned error, and added a dropdown list that shows the loaded folders (you can delete from this list as well)

still haven't made much progress on the MRU, but I'm not done quite yet...
Thnks 'll g nd s hw t wrks!
Chris

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Nice!  Multiple levels of undo as well.

No need to thank me for this, I know how dull your vacation would have been without it.

;)

Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
No need to thank me for this, I know how dull your vacation would have been without it.

indeed...

another update - worked out the MRU business (last 10 items)

could do with a bit more testing to be sure, but let me know how it goes
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Target: some problem in the initial start-up (code below) but restarting the 2nd time turns out ok.

Code
Error: Submenu does not exist.  The current thread will exit.
…
--->	057: Menu,FileMenu,add,MRU,:MyMRU


not a biggie but in the 'set length' gui, the text is not quite viewable..
ws-maimthatfile-1.png

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
I'm having a little difficulty but I think it's what I'm doing. 
Need a bit more time to experiment.
Sorry to leave you with only the morning paper to enliven your ride!
Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Target: some problem in the initial start-up (code below) but restarting the 2nd time turns out ok.
Code
Error: Submenu does not exist.  The current thread will exit.

clearly more work needed here - I guess I was a bit enthusiastic posting this morning (note to self - do your own damn testing!!)

error is caused because you don't have any MRU entries - I'm still working on this bit but this is some progress

not a biggie but in the 'set length' gui, the text is not quite viewable..

what resolution are you running? it's fine here (laptop @ 1280 x 800)

I'm having a little difficulty but I think it's what I'm doing. 

welcome to my world...
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
clearly more work needed here - I guess I was a bit enthusiastic posting this morning (note to self - do your own damn testing!!)

error is caused because you don't have any MRU entries - I'm still working on this bit but this is some progress

yes, i found out about this quite belatedly since MTF puts in an 'ERROR' entry in the MRU drop-down. :)


not a biggie but in the 'set length' gui, the text is not quite viewable..

what resolution are you running? it's fine here (laptop @ 1280 x 800)

desktop @ 1152 x 864. font size: normal (96 dpi)

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
clearly more work needed here - I guess I was a bit enthusiastic posting this morning (note to self - do your own damn testing!!)

error is caused because you don't have any MRU entries - I'm still working on this bit but this is some progress

yes, i found out about this quite belatedly since MTF puts in an 'ERROR' entry in the MRU drop-down. :)


not a biggie but in the 'set length' gui, the text is not quite viewable..

what resolution are you running? it's fine here (laptop @ 1280 x 800)

desktop @ 1152 x 864. font size: normal (96 dpi)

Same display issue here (1600x1200: normal)
Chris
« Last Edit: April 14, 2009, 04:33 PM by cranioscopical »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
did you forget something there Chris or are you getting into minimal statements ?!! :)
Tom

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
did you forget something there Chris or are you getting into minimal statements ?!! :)
Distracted in the middle of posting.  :-[
Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
a request...

this has been going round in my mind for a couple of weeks now but nothings happening (nothing new there though...) so it's over to you guys for some input

After looking at the file/folder checkbox arrangement I get the feeling that it's not very intuitive.
[attach]
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Original address: https://www.donationcoder.com/forum/index.php?topic=17371.0