-
as per title, i was thinking that a program could go through given folders recursively and report back the files/folders that are above the user-defined length and alow the user to rename them within the UI.
this will come in handy when burning cd backups. too many times, the burner complains about extra-long filenames way too late and sometimes this happens during the burning session, with a prompt holding up everything. i'm not someone who hangs around watching the whole burning session, so this program will be a good guide for me before i click the 'Burn' button. :)
-
ah that's a nice idea.. maybe with some basic rules for autosuggesting new names?
-
yes, some rules-based renaming suggestions will be very helpful too.
-
I like this Idea so many times I have had this problem.
-
If you all don't mind me getting a bit of sleep, I can tackle this one later today/tonight. What sort of rules were you guys thinking about?
-
What kind of renaming rules could be defined?
Cut off
remove " :/\;_-|"?
delete numbers
shorten word parts with first 1-2 chars + "." or only use the characters
A really cool thing would be replacing shorter acronyms of name parts.
-
If you all don't mind me getting a bit of sleep, I can tackle this one later today/tonight. What sort of rules were you guys thinking about?-skwire
i'd like all the filenames in a flattened view (sans folder) and when i press F2, i'd be able to rename them one at a time.
for repeated usage though, some rules to shorten filenames can be:
- replace given words with another
- remove whitespace, dots, underscore
- remove vowels
- truncate user-defined chars from left or right
-
1-4A Rename (http://www.1-4a.com/rename/) has built-in features for shortening names for burning CDs:
Shorten filenames for CD-Rs
If you write CDs they can only can contain filenames with 64 chars or less. Thus 1-4a rename can try to
1. Shorten the filename: deleting unnecessary spaces (additional to the above mentioned function)
2. Destruct the filename "Remix" => "Rmx" etc.
3. Delete space between letters and make letters uppercase: "Michael Jackson-Beat it.mp3" => "MichaelJackson-BeatIt.mp3"
4. Delete Vowels "Stevie Wonder - Happy birthday" => "Stv Wndr - Hppy brthdy"
5. Delete double letters: "Madonna" =>"Madona"
You will see the changes immediately plus the number of letters above 64.
Additionally you can choose to not accept changes, if the filename is still too long.
-
might be nice to have it also automatically detect when there are character sets used in files that can be troublesome.
rjbull's point makes me think that, maybe the main thing this program could do is find the files whose names (including or excluding path) or too long, and then list them in an explorer-compatible window -- where one could then drag and drop them to a renamer or use F2 or normal right-click context menu to manually rename.
in other words -- the program itself wouldn't nesc. have to do anything but locate the files and present them in a way that you could use other tools to fix the names.
does seem like their could be some tricky issues though..
youd want to also put in some protection against people running this on their windows or Program Files\ directories by accident though.. shudder to think.
-
1-4A Rename has built-in features for shortening names for burning CDs:-rjbull
i've been using 1-4a rename but it doesn't allow any user-defined character length, only 64 chars or more is detected as too long.. anyway, i'm not looking for full-blown renamer.
as mentioned above, just a simple app that will load given folders/files, checks against user-defined length and report back the status. additionally if it allows me to rename by pressing F2 within the GUI, i'd be most happy.
-
What kind of interface were you thinking? Simple drag-n-drop listview? Browse button instead? Both?
-
a listview display that allows that drag-n-drop would be nice but i also sometimes copy-paste the paths, so a browse dialog could come in handy.
-
I was thinking a two-column listview. The first column would be just the filename while the second would have the entire filepath (for reference). F2 editing will be in place for the first column. Also...the max length. I assume this is just determined by the character count in the complete filepath, right? I was thinking a combobox that would allow the user to enter in any number they wanted (along with some presets like 64, 128, etc). How does this sound?
-
a two-column listview would be cool but can the 2nd column be relative to chosen folder like this:
\ <- root
\abc\ <- 1st sub
and so on instead of displaying the filepath.
actually the character count that i'm looking for is the length of <filename.ext> and/or <folder>. :)
e.g.
C:\Program Files <- folder; return 13 characters
C:\PDFZilla\help.chm <- file; return 4 characters
of course, if i choose/drop a folder, there can be an option for recursive scanning.
-
You have me confused. I've been basing my assumptions on complete path lengths e.g.
c:\path\to\file.ext <-- Returns 19.
a two-column listview would be cool but can the 2nd column be relative to chosen folder like this:
\ <- root
\abc\ <- 1st sub
and so on instead of displaying the filepath.
-lanux128
I need more clarification here. Example:
Chosen/dropped path: c:\path\to
Files in that folder:
file_1.exe (c:\path\to\file_1.exe)
file_2.ext (c:\path\to\file_2.exe)
file_3.ext (c:\path\to\file_3.exe)
\subfolder_1\file_4.ext (c:\path\to\subfolder_1\file_4.ext)
\subfolder_1\file_5.ext (c:\path\to\subfolder_1\file_4.ext)
\subfolder_1\file_6.ext (c:\path\to\subfolder_1\file_4.ext)
\subfolder_2\file_7.ext (c:\path\to\subfolder_2\file_7.ext)
\subfolder_2\file_8.ext (c:\path\to\subfolder_2\file_8.ext)
\subfolder_2\file_9.ext (c:\path\to\subfolder_2\file_9.ext)
Given the above, you want the listview columns to look like this:
Filename | Path
-------------------------------------
file_1.exe | \file_1.exe
file_2.ext | \file_2.exe
file_3.ext | \file_3.exe
file_4.ext | \subfolder_1\file_4.ext
file_5.ext | \subfolder_1\file_4.ext
file_6.ext | \subfolder_1\file_4.ext
file_7.ext | \subfolder_2\file_7.ext
file_8.ext | \subfolder_2\file_8.ext
file_9.ext | \subfolder_2\file_9.ext
Is this correct?
actually the character count that i'm looking for is the length of <filename.ext> and/or <folder>. :)
e.g.
C:\Program Files <- folder; return 13 characters
C:\PDFZilla\help.chm <- file; return 4 characters
-lanux128
How does "C:\Program Files" return thirteen? Are you not counting the "c:\" portion? If so, why?
How does "C:\PDFZilla\help.chm" return four characters? Are you only counting the filename minus the extension? If so, why?
of course, if i choose/drop a folder, there can be an option for recursive scanning.
-lanux128
Recursive scanning is assumed.
-
BTW...this doesn't have to be limited to two columns. Add more if you feel the need.
-
actually the character count that i'm looking for is the length of <filename.ext> and/or <folder>. :)
e.g.
C:\Program Files <- folder; return 13 characters
C:\PDFZilla\help.chm <- file; return 4 characters
-lanux128
How does "C:\Program Files" return thirteen? Are you not counting the "c:\" portion? If so, why?
How does "C:\PDFZilla\help.chm" return four characters? Are you only counting the filename minus the extension? If so, why?-skwire
for the 1st one, i only need the length of the folder since the length of drive letters will be static (limited to 3 chars) and for the 2nd, i want to shorten the filename by renaming the name part only since renaming the extension will render the file unreadable except maybe in cases like .html and .htm
-
I need more clarification here. Example:
Chosen/dropped path: c:\path\to
Files in that folder:
file_1.exe (c:\path\to\file_1.exe)
file_2.ext (c:\path\to\file_2.exe)
file_3.ext (c:\path\to\file_3.exe)
\subfolder_1\file_4.ext (c:\path\to\subfolder_1\file_4.ext)
\subfolder_1\file_5.ext (c:\path\to\subfolder_1\file_4.ext)
\subfolder_1\file_6.ext (c:\path\to\subfolder_1\file_4.ext)
\subfolder_2\file_7.ext (c:\path\to\subfolder_2\file_7.ext)
\subfolder_2\file_8.ext (c:\path\to\subfolder_2\file_8.ext)
\subfolder_2\file_9.ext (c:\path\to\subfolder_2\file_9.ext)
Given the above, you want the listview columns to look like this:
Filename | Path
-------------------------------------
file_1.exe | \file_1.exe
file_2.ext | \file_2.exe
file_3.ext | \file_3.exe
file_4.ext | \subfolder_1\file_4.ext
file_5.ext | \subfolder_1\file_4.ext
file_6.ext | \subfolder_1\file_4.ext
file_7.ext | \subfolder_2\file_7.ext
file_8.ext | \subfolder_2\file_8.ext
file_9.ext | \subfolder_2\file_9.ext
Is this correct?-skwire
yes this is what i want but even better if the 'path' column can be further shortened. :)
like this:
Filename | Path
-------------------------------------
file_1.exe | \
file_2.ext | \
file_3.ext | \
file_4.ext | \subfolder_1\
file_5.ext | \subfolder_1\
file_6.ext | \subfolder_1\
file_7.ext | \subfolder_2\
file_8.ext | \subfolder_2\
file_9.ext | \subfolder_2\
-
You have me confused. I've been basing my assumptions on complete path lengths e.g.
c:\path\to\file.ext <-- Returns 19.
-skwire
sorry if the OP was ambiguous i'd thought the rename part would help explain things. apparently not. :)
-
Apologies, I am still unclear as to how you want to count the path length. You've mentioned counting folders and files differently but there will never be only a folder in a given listview row. Every row will be a file of some sort. In other words, this is not intended as a folder renamer, only a filename renamer. Are we on the same page with regard to that? For instance, based on what you said above, you want it like this:
file_1.exe | \
file_4.ext | \subfolder_1\
file_7.ext | \subfolder_2\
What you want is easily doable in a GUI sense. However, the following will never happen:
file_1.exe | \
file_4.ext | \subfolder_1\
file_7.ext | \subfolder_2\
subfolder_3 | \subfolder_3\ <--- This can't happen.
If a folder is empty, nothing gets added to the listview. Does that make sense?
So, with all that in mind, I still need to know how you want these lengths counted. Maybe I'm not seeing the forest for the trees on this one. :P
-
... If a folder is empty, nothing gets added to the listview. Does that make sense?-skwire
does that mean i can't rename folders? :( i guess i can live with that.
So, with all that in mind, I still need to know how you want these lengths counted.-skwire
let me put it this way:
if the program finds this
<drive>/<folder>/<filename>.<ext>
<drive>/<folder>/<sub-folder>/<filename>.<ext>
it only returns the length of <filename>
but if it finds
<drive>/<folder>/<sub-folder>
it returns the length of <sub-folder>
finally if it's down to
<drive>/<folder>
then return only <folder>.
hope that explains things a bit. :)
-
Based on your counting requirements, and talking with mouser, I think I see where my confusion lies. I've been basing my thoughts and assumptions that you are concerned with fixing full path length or, at the very least, relative path length issues. From what you suggested in the last post, are you concerned simply with fixing long filenames or foldernames regardless of their parent path? Is that correct?
-
From what you suggested in the last post, are you concerned simply with fixing long filenames or foldernames regardless of their parent path? Is that correct?-skwire
absolutely, that is what i want. :)
P.S. let me know if you want me to pop by the chat-room to discuss some more..
-
From what you suggested in the last post, are you concerned simply with fixing long filenames or foldernames regardless of their parent path? Is that correct?-skwire
absolutely, that is what i want. :)-lanux128
I think we're on the same page now. Now, since there will be the ability to rename folders, I'd like to restrict this tool to working with only one given folder (and its subfolders) at a time. The reason is that, if you rename a folder, I can do a simple rescan of the working path to refresh the listview contents. Does this make sense? Would this be acceptable?
P.S. let me know if you want me to pop by the chat-room to discuss some more..
-lanux128
I'm there almost all the time. =]
-
I think we're on the same page now. Now, since there will be the ability to rename folders, I'd like to restrict this tool to working with only one given folder (and its subfolders) at a time. The reason is that, if you rename a folder, I can do a simple rescan of the working path to refresh the listview contents. Does this make sense? Would this be acceptable?-skwire
yes, we're on the same wave-length. i only work with one folder at a time, together with sub-folders within it. this solution suits me fine. :up:
i can't get onto the chat-room as much as i'd like to but i'll try anyway. :)
-
not sure if there's been a solution or not (it's vewy vewy quiet out there...) but here's my work on this so far - apologies if the code is untidy, but it is a work in progress
Basic functionality only so far, ie you can only edit a single file at a time.
Select a folder using the add files button. Files are filtered by the number of characters in the file name (excluding the xtn) using the spinner at the top. Multiple folders can be added (folders are included in the list)
F2 or double click to edit the selected item (only)
ToDo -
capture single click (x2) editing
Preconfigured rules - I thought about the suggestions for this and it seemed they could be distilled down to a couple of basic rules, ie Trim Left, Trim Right, and replace custom. I envisage Custom as being a comma separated list of characters/strings to remove from a file name (each character/string would be removed sequentially) - this is potentially problematic as the initial actions may create unintentionial matches for subsequent actions
any thoughts/suggestions/feedback (am I on the right track here??)
EDIT - removed old attachment
-
wow! this is nice Target. :up: i've play around and i've noticed that pressing F2 on the 1st item puts the word 'File' in the rename dialog. the rest works okay with the filename in the dialog. also can you add a refresh button, for updating the view as the user increase/decrease the character limit.
i'll be back with more feedback. btw, attaching a screenshot:
[ You are not allowed to view attachments ]
edit: if the script is running, other app can't use F2. just letting you know.
-
try this then...
- fixed (?) the issue with editing the first entry
- added a refresh button (doing this automagically for a spinner isn't going to work)
- added some sample functionality to the trim functions (it changes the values in the list, but that's all). This isn't complete as it doesn't loop through the list yet (i'm getting there...)
Not sure about confining the hotkey to that app (I usually try and pick unique keys), it must be doable but I'll have to see what I can find out
-
- fixed (?) the issue with editing the first entry
- added a refresh button (doing this automagically for a spinner isn't going to work)
- added some sample functionality to the trim functions (it changes the values in the list, but that's all). This isn't complete as it doesn't loop through the list yet (i'm getting there...)
-Target
yes, (1) is fixed and the refresh button is nice. also can you add an edit box the folder select box? i normally copy-paste the path. also i assume that 'Apply' button is not functioning yet (?)
Not sure about confining the hotkey to that app (I usually try and pick unique keys), it must be doable but I'll have to see what I can find out-Target
i tried the #IfWinActive command but the rename dialog is suppressed instead.
#IfWinActive File_renamer.ahk ahk_class AutoHotkeyGUI
-
the apply button works but only in a limited fashion, ie I've added some sample functionality to the trim functions.
To play with it just check a box (both at once if you like) and hit apply. The results are displayed in the list only so you can't do any damage...
quite a bit more work to do with that side of things yet...
added an edit box to paste a path AND drop file functionality (drop a folder on the gui to load it - you need to set your string length first, or set it and refresh it afterwards)
haven't had a chance to look at the hotkey issue (I may be able to get to it later on tonight, or in the morning)
-
the trim functions are working quite well on files but on the folders. just letting you know, i know it's still WIP. thanks for adding the path box, but a message pops up when i press 'Add files' button.
another way to do it is to add in this line:
FileSelectFolder, OutputVar, StartingFolder, 2
where '2' means "to provide an edit field that allows the user to type the name of a folder".
-
not sure if there's been a solution or not (it's vewy vewy quiet out there...)
-Target
Apologies, Lanux128 and Target. I've been busy with Trout code, PlayTime code, both daughter's soccer games and my own hockey games. =] It looks like Target has you well in hand.
-
yeah, folders might be a bit of problem (if you change a folder name, all the filepaths are changed as well...)
sorry, thought that was what you were asking for as a feed for adding folders (the messagebox was for debugging so it can safely be ignored). Thinking about it a bit more though I can see a number of problems with this approach (so out it goes... :huh:)
-
[Apologies, Lanux128 and Target. I've been busy with Trout code, PlayTime code, both daughter's soccer games and my own hockey games. =] It looks like Target has you well in hand.
-skwire
no apologies necessary, you gotta do what you gotta do!!
not sure if I'd say I had this in hand though, it's more like a tenous grip on one edge...
I was kinda looking forward to your solution though (I have no doubt it would be both more elegant and more capable than mine)
-
I was kinda looking forward to your solution though (I have no doubt it would be both more elegant and more capable than mine)
-Target
Okay, I'll start writing it.
-
yeah, folders might be a bit of problem (if you change a folder name, all the filepaths are changed as well...)
-Target
if the folders are too much of a problem then renaming could be restricted to files only but display the folder length as well.
-
I was kinda looking forward to your solution though (I have no doubt it would be both more elegant and more capable than mine)
-Target
Okay, I'll start writing it.-skwire
thanks skwire, looking forward to that version as well. Target, i hope you will soldier on.
-
further update...
- F2 Hotkey - not fixed, but changed to WIN+F2 in the interim (this gives F2 back to your other applications)
- sample functionality for Trim AND custom
the script now loops through the selected items and performs whatever actions you have checked on the right hand side. Some care is needed with the custom function as it initial actions may create unintentional matches for subsequent actions. NOTE - the actions you specify do not have any impact on the actual files at this point. The functionality is intended for testing and evaluation purposes only
todo -
- recognises overlapping trims, ie where the total characters trimmed exceed the number of characters in a given file name
- fix the hotkey issue
- convert the sample functionality into something useful
- clean up/rationalise the gui
over to you...
-
lanux128, here's my take: Name Knife (http://skwire.dcmembers.com/apps/name_knife/name_knife.ahk)
At this point, it does no renaming whatsoever; it's more of a proof of concept for the GUI. Before I go further, please let me know if this is what you had in mind. I tried it make it look like your example post from above. Thanks.
-
the script now loops through the selected items and performs whatever actions you have checked on the right hand side. Some care is needed with the custom function as it initial actions may create unintentional matches for subsequent actions. NOTE - the actions you specify do not have any impact on the actual files at this point. The functionality is intended for testing and evaluation purposes only-Target
yes, i can see that trimming can cause certain files to have the same truncated file-names. it's a good idea that you are testing all possibilities before committing to the actual renaming. :up:
-
lanux128, here's my take: Name Knife (http://skwire.dcmembers.com/apps/name_knife/name_knife.ahk)
At this point, it does no renaming whatsoever; it's more of a proof of concept for the GUI. Before I go further, please let me know if this is what you had in mind. I tried it make it look like your example post from above. Thanks.-skwire
thanks for the script. i've been trying it out and it looks and feels almost like the prototype but 'max file/folder name length' option confuses me. when i choose the length from the drop-down, all files in the list-view disappear, why is that? also a refresh button would be nice for updating the view as the user increase/decrease the character limit.
-
thanks for the script. i've been trying it out and it looks and feels almost like the prototype but 'max file/folder name length' option confuses me. when i choose the length from the drop-down, all files in the list-view disappear, why is that?
-lanux128
What? Simply choosing a value from the dropdown shouldn't make any listview contents disappear. Now, if you set it BEFORE choosing a folder, those results will be filtered. Maybe this is what you're seeing?
also a refresh button would be nice for updating the view as the user increase/decrease the character limit.
-lanux128
A refresh button is already in my next build.
-
thanks for the script. i've been trying it out and it looks and feels almost like the prototype but 'max file/folder name length' option confuses me. when i choose the length from the drop-down, all files in the list-view disappear, why is that?
-lanux128
What? Simply choosing a value from the dropdown shouldn't make any listview contents disappear. Now, if you set it BEFORE choosing a folder, those results will be filtered. Maybe this is what you're seeing?-skwire
now i understand that the results are filtered, in this case maybe a status-bar update would be useful confirming that none of the files exceed the given length.
thanks for the refresh button plus another feature req: retention of the last few chosen folder as a drop-down. :)
-
now i understand that the results are filtered, in this case maybe a status-bar update would be useful confirming that none of the files exceed the given length.
-lanux128
Added. Re-download. Name Knife (http://skwire.dcmembers.com/apps/name_knife/name_knife.ahk)
another feature req: retention of the last few chosen folder as a drop-down.
-lanux128
Obviously, this will entail an INI file for saving purposes. Cool?
-
thanks, downloading the newer version. i'm good with the INI file solution. :up:
-
Updated. Re-download, please. Name Knife (http://skwire.dcmembers.com/apps/name_knife/name_knife.ahk)
-
sorry there seems to be an error.
[ You are not allowed to view attachments ]
-
sorry there seems to be an error.
-lanux128
Update to the latest AutoHotkey.
-
Update to the latest AutoHotkey.-skwire
oops! :-[
-
Is that look and feel what you had in mind? Once we get this to where you want, I'll go ahead with the actual renaming code.
-
the look-n-feel is great so far, another addition could be the ability to add and retain user-defined character length in the drop-down. i think that's about it for gui, i couldn't think of anything else right now.
do continue with the renaming part and if it's not too much, can there be a log of old and new filename(s) whenever renaming occurs? btw, this log thing is totally optional.
-
yes, i can see that trimming can cause certain files to have the same truncated file-names. it's a good idea that you are testing all possibilities before committing to the actual renaming. :up:
-lanux128
anything else, or should i work on converting it to a a functional app?
and would you like me to try and include any of the suggestions you made for Skwires response?
-
anything else, or should i work on converting it to a a functional app?
and would you like me to try and include any of the suggestions you made for Skwires response? -Target
actually i don't know. :) i'm afraid that both scripts - your's and skwire's will end up as identical twins. it'd be nice if there was a different approach, maybe in addition to trimming some rules-based renaming suggestions could be added.
-
actually i don't know. :) i'm afraid that both scripts - your's and skwire's will end up as identical twins. it'd be nice if there was a different approach, maybe in addition to trimming some rules-based renaming suggestions could be added.
-lanux128
haven't even looked at Skwires app - work impinges (how inconvenient...) - but it was inevitable that there would be similarities
predefined or rule based changes were suggested early in the piece, but how to decide which ones (so many choices, such a small gui...). Make some suggestions...
I would like to finish this but if it's going nowhere there's not much point - while I enjoy the learning exercise and the opportunity to help out it's a waste if no ones going to use it.
Please give more feedback. the more you give the better the final result will be...
-
yes, it'd better if there are some popular rules. i'd thought there'll be more participants giving suggestions for this type of tool. anyway, here are some of the ideas that i brought up earlier..
for repeated usage though, some rules to shorten filenames can be:
- replace given words with another
- remove whitespace, dots, underscore
- remove vowels
- truncate user-defined chars from left or right-lanux128
item 4 is covered but item 2 can be used to change dots/underscore in the filename to whitespace or vice-versa. items 1 & 3 are not so useful. but you can add more characters to be removed like ` , ' # etc..
-
For the record, I'm really hesitant to develop this into a full-blown renamer. One, there are PLENTY of much more capable renamer apps out there and, two, I simply don't want to have to support a renamer app. Lanux, did you ever see Majkinetor's AHK-developed renamer app? If not: Multi-Rename Script (http://www.autohotkey.com/forum/topic40688.html&sid=6794f12fade3a73f7c567edef41ade62)
-
egads Skwire, you sure know how to motivate a guy...
-
For the record, I'm really hesitant to develop this into a full-blown renamer. One, there are PLENTY of much more capable renamer apps out there and, two, I simply don't want to have to support a renamer app. Lanux, did you ever see Majkinetor's AHK-developed renamer app? If not: Multi-Rename Script (http://www.autohotkey.com/forum/topic40688.html&sid=6794f12fade3a73f7c567edef41ade62)-skwire
skwire: i think you misunderstood me. my post was intended for Target as he was contemplating on how to improve his script while keeping it distinct from yours. maybe should have quoted Target in the reply, my bad..
anyway to reiterate, i've always maintained that i don't want a '"full-blown renamer", as can be seen from my earlier post.
i've been using 1-4a rename but it doesn't allow any user-defined character length, only 64 chars or more is detected as too long.. anyway, i'm not looking for full-blown renamer.
as mentioned above, just a simple app that will load given folders/files, checks against user-defined length and report back the status. additionally if it allows me to rename by pressing F2 within the GUI, i'd be most happy.
-lanux128
-
egads Skwire, you sure know how to motivate a guy...
-Target
Beg pardon?
-
Updated: Name Knife (http://skwire.dcmembers.com/apps/name_knife/name_knife.ahk)
+ F2-based file renaming in is place. Folder renaming is not. The error checking is fairly comprehensive at this point.
+ Edit menu -> Length presets. You can enter in your own list of length presets.
+ It will also save your last entered value.
Please let me know your thoughts.
-
egads Skwire, you sure know how to motivate a guy...
-Target
Beg pardon?
-skwire
Majkinetor's a very capable AHK coder (I can only dream...), and seeing his app kind of makes my meagre efforts look, well, a bit sad...
-
+ F2-based file renaming in is place. Folder renaming is not. The error checking is fairly comprehensive at this point.
+ Edit menu -> Length presets. You can enter in your own list of length presets.
+ It will also save your last entered value.-skwire
first two items works well but i don't get the 3rd item - "last entered value", did you mean the folder path?
-
Majkinetor's a very capable AHK coder (I can only dream...), and seeing his app kind of makes my meagre efforts look, well, a bit sad...-Target
if you're willing, i've another problem you can help me solve here (https://www.donationcoder.com/forum/index.php?topic=17435.0). i'll post more info on the thread, do drop by.
-
+ It will also save your last entered value.
first two items works well but i don't get the 3rd item - "last entered value", did you mean the folder path?
-lanux128
Apologies, I should have been more clear. It should save the last custom length value you entered/used. In regards to the folder paths, it will save the last ten (this is easily changed if ten is not enough).
-
an update -
- added a 'folders only' checkbox - for limiting your add files actions to folders only...
- all functionality now, umm, functional...
- fixed hotkey (now back to F2 for editing a single entry)
- blocked folder renaming when files are also added to the listview (as changing folder names would change file paths as well...)
- added a replace field - this is something of an experiment. Where the find field will accept comma separated strings, the replace field will only accept a single entry (be that a character or a string). Net effect is that if there is an entry in the replace field ALL characters/strings in the find field will be replaced with that character/string (it will accept white spaces so you could easily get caught)
todo -
- do something about the trim functionality to trap requests to trim more than the available number of characters in a file name
I have been doing a bit of testing but i would greatly appreciate it if you (or anyone else for that matter) could do some for me (the more the better!!)
and if you have any feedback, please let me know...
I saw the other thread, I'll have a think about it and see if I can come up with anything...
EDIT - removed old attachment
-
Apologies, I should have been more clear. It should save the last custom length value you entered/used. In regards to the folder paths, it will save the last ten (this is easily changed if ten is not enough).-skwire
thanks, now i understand. also retention of ten folders is more than enough. :up:
-
new update -
changed the sort order which allows for folder renaming at the same time as files
EDIT - removed old attachment
-
new update -
changed the sort order which allows for folder renaming at the same time as files-Target
have some suggestions though.. checking 'Folders only' option can be made auto-toggle instead of having to click 'refresh'. i haven't tried the 'trim' functions yet but the 'custom replace' sometimes renames a file without its extension, might want to check up on that.
additionally in the status bar, the 'files found' info can be broken up to:
(1) total numbers files/folders found and
(2) the numbers files/folders being viewed due to the filtering.
-
OK, I'm pretty sure this has to be getting close...
I wasted a lot of time chasing a non existent bug (who knew '000' and '00' would evaluate to 0... :-[) - on the upside I found a couple of other errors that were masked by the (non-existent) bug
added a couple of extra's, a new name (Maim That File!), and a limitation (it will only load a single folder (and it's child files/folders) at any one time)
let me know if this works for you (actually, any feedback is good)
-
Maim That File!
-Target
:Thmbsup:
-
I wondered if that would go past...
-
I wondered if that would go past...-Target
Off topic, again.
I reckon you should have called it Crustes and introduced two versions.
Could have had Regular Crustes and Pro Crustes.
Anyway, to genuflect before the topic, you're doing a nice job on this!
-
many thanks, I'm enjoying the excercise
and much as I enjoyed the reference, I'm not sure I want to produce something called crusties - that sort of thing that can follow you around (for years...)
contextually it's also a little confusing as the fellow was apparently either a minor deity (I'm somewhat used to this already) or a bandit. It may be that there is sometimes little difference but I'd prefer the former rather than the latter
at the end of the day he came to a sticky end regardless which is also something I'd rather avoid if at all possible...
-
at the end of the day he came to a sticky end
-Target
...and so back to crusties. I take your point.
Be nice if:
one could expand the window horizontally. Believe it or not some file names here are longer than will fit without scrolling.
highlighting on selected files could be adjusted on the fly, to match the value in the trim left/right spinners.
there were a 'trim between'.
one could select/copy directly from file names to paste into the 'custom replace' box.
there were an undo.
the tax man knocked on my door tomorrow to hand me a full, cash refund
-
Good work so far. This is probably one scenario you want to handle:
Files named:
file_01.jpg
file_02.jpg
file_03.jpg
...
If you trim right two places, and keep overwriting, you will end up with a single "file_.jpg" file.
-
for a coding snack this is turning out to be quite an excercise :o
Be nice if:
one could expand the window horizontally. Believe it or not some file names here are longer than will fit without scrolling.
highlighting on selected files could be adjusted on the fly, to match the value in the trim left/right spinners.
there were a 'trim between'.
one could select/copy directly from file names to paste into the 'custom replace' box.
there were an undo.
the tax man knocked on my door tomorrow to hand me a full, cash refund
-cranioscopical
- I'll have a think about this one - I actually anticipated the question, but i was more concerned with getting it functional before worrying about anything like that
- are you asking for a 'real time' preview here?
- should be doable
- see above
- in my todo list. I need to think about this some more though
- the cheques in the mail...
Good work so far. This is probably one scenario you want to handle:
Files named:
file_01.jpg
file_02.jpg
file_03.jpg
...
If you trim right two places, and keep overwriting, you will end up with a single "file_.jpg" file.
-skwire
many thanks, that's high praise indeed.
actually, this is pretty cool, not only have I written a file renamer, but it does compression as well!!
While I hadn't thought of this exact scenario, I knew there was always going to be a risk (hence the name). At the end of the day we can't be protected from ourselves so there is implicitly a high level of responsibility on the user to take some care when carrying out these sorts of operations.
Having said that the idea is intriguing, but I can't quite see a strategy for dealing with it at this point :huh:
-
for a coding snack this is turning out to be quite an excercise :o-Target
Yes, I realize most of that belongs on the three-course-meal table.
I didn't intend to buffet you with requests.
Be nice if:
one could expand the window horizontally. Believe it or not some file names here are longer than will fit without scrolling.
highlighting on selected files could be adjusted on the fly, to match the value in the trim left/right spinners.
there were a 'trim between'.
one could select/copy directly from file names to paste into the 'custom replace' box.
there were an undo.
the tax man knocked on my door tomorrow to hand me a full, cash refund-cranioscopical
- I'll have a think about this one - I actually anticipated the question, but i was more concerned with getting it functional before worrying about anything like that
- are you asking for a 'real time' preview here?
- should be doable
- see above
- in my todo list. I need to think about this some more though
- the cheques in the mail...
-target
are you asking for a 'real time' preview here?
yes, I find it difficult to count off on the screen what the spinner will get me
the cheques in the mail...
Uncanny! The very words the tax man used.
-
what's happened to Lanux? I thought he might be a bit more active on this...
Yes, I realize most of that belongs on the three-course-meal table.
I didn't intend to buffet you with requests.
-cranioscopical
that's not a problem, I'll just keep nibbling away at it.
FYI, I haven't posted an update, but I've got both the 'betweens' and the copy/paste bits working, and I'm working on the undo list.
The list width is an issue that I'm trying to resolve as part of the undo list as well...
I'm going to need to digest the other requests some more before I do anything with them (I'd much rather produce a palatable solution than spewing out something that no one wants)
Also note that I'm off on holidays for a fortnight from Friday (back after Easter) and as I do most of this stuff on the bus to and from work I'll be taking this offline for most of that time (I will check in but not often).
If you (or anyone else) has any suggestions or requests they need to post them before CoB Friday (Australian time...) else I probably won't get to them till I'm back...
-
Also note that I'm off on holidays for a fortnight
-Target
Holidays! For a fortnight! Didn't you just have Christmas morning off?
Thanks for even considering these ideas. None was intended to cause a problem.
Have a good break!
-
Also note that I'm off on holidays for a fortnight
-Target
Thanks for even considering these ideas. None was intended to cause a problem.
Have a good break!
-cranioscopical
and none has. If it does, I'll let you know (rest assurred!!)
and I intend to...
and veering OT for a moment, what's the deal with your avatar? for some time now I've been seeing a faint image in a red(ish) square... (affects some others as well)
-
for some time now I've been seeing a faint image in a red(ish) square... (affects some others as well)-target
I'll use the blue box to recycle it.
-
I guess that means it's intentional then (i thought it must have been some sort of rendering issue I was having...)
does it have some significance?
-
what's happened to Lanux? I thought he might be a bit more active on this...-Target
don't worry, had some things to do outside. i'm glad that you took this coding snack and just ran with it. :up:
-
not a problem :up:
I'm still running, but i was looking for a bit more feedback from you on this...
-
your little app has rapidly outgrew my coding snack requirement, it's now more like a mini-renamer. i'll take a look later and will let you know. also some customisable options would be nice, such as retaining user-defined length and last-opened folder plus a log of renaming that was done.
-
when you say user defined length, are you referring to the initial length filter (currently defaults to 64)?
I could save the last folder name, but what for? (sorry, not trying to be difficult, I'm just trying to get this into context)
I'm working on an undo function, but i anticipated it being current for the life of the session only. What would be the value of a persistent log?
-
does it have some significance?
-Target
Almost nothing that I do has significance :)
-
Almost nothing that I do has significance :)
-cranioscopical
sounds like my resume...
-
when you say user defined length, are you referring to the initial length filter (currently defaults to 64)?
I could save the last folder name, but what for? (sorry, not trying to be difficult, I'm just trying to get this into context)
I'm working on an undo function, but i anticipated it being current for the life of the session only. What would be the value of a persistent log? -Target
* yes, i meant the initial filter length.
* it'd be more like MRU; the user can right-click the add button and recall some of the last-used folders
* i didn't know that you are working on an undo function, if so then there is no reason for the log.
-
* yes, i meant the initial filter length.
* it'd be more like MRU; the user can right-click the add button and recall some of the last-used folders
-lanux128
* this shouldn't be a problem
* neither should this, though I'll need to think about how to incorporate it (and it's unlikely you'll see it for at least a couple of weeks... 8))
-
an update (I can't believe the traffic this thread is drawing :o) -
this is very much a work in progress (hence the BETA tag) and as such will contain extraneous bits of code and maybe some stray messageboxes (apologies for this, they're used for debugging)
- COPY from list (CTRL+C) functionality now works
- the BETWEEN functionality now works
- the UNDO functionality now works
PLEASE TRY IT AND LET ME KNOW HOW IT GOES - any feedback (good, bad, or indifferent) would be appreciated
ToDo -
- clean up the GUI and resize to fit the width of the listview controls
- I discovered a flaw in my logic for the file/folder and recursive checkboxes which I've yet to fix (DOH!! :-[)
- UNDOing something out of sequence (ie picking a folder somewhere down the list) can (will?) break the undo functionality for some items (as the paths may have changed
- block editing of UNDO list
- MRU functionality to be added
- more 'standard' hotkeys 2B added
- 'preview' functionality (2B investigated...)
Most of these will fit into the current incarnation, while others (preview) may require a more extensive rewrite...
As stated above, I really need some feedback on how this is going. I can (and do) a certain amount of testing, but I'm a bit close to the project for this to really be effective.
-
Thanks for the effort!
If I drag and drop files onto the list when its populated, that clears the list. (Doctor, it hurts when I do this.)
I haven't the hang of between. If I want to remove something between pos 5 and pos 9 how do I go about that?
Undo worked in my quick test.
(having internet problems tonight -- satellite feed is intermittent).
-
If I drag and drop files onto the list when its populated, that clears the list. (Doctor, it hurts when I do this.)
-cranioscopical
take 2 asprin and sue me in the morning... actually this is/was intentional as I felt (at the time) that there could be issues with paths changing - I can change this though, I just need to assess it against everything else to try and minimise any potential conflicts
I haven't the hang of between. If I want to remove something between pos 5 and pos 9 how do I go about that?
between works using the left and right trim spinners, eg characters between the left trim and right trim values are retained... actually, having read what I've just written that is the same as trimming left AND right, so obviously I misunderstood that part...
having made a goose of myself on that point, I've now fixed the betweens (no, really) so download it again and have another go...
Undo worked in my quick test.
good to hear (at least I got something right...)
EDIT - removed old attachment
-
having made a goose of myself-target
I wasn't very clear, eider.
With 'between' I was hoping for the ability to excise something so that, e.g.
My Music [CJRT 1991.11d.xx] 198x.xx.xx - Coffee Cantata - JS Bach.mp3
My Music [CJRT 1992.01a.xx] 198x.xx.xx - Spem in Alium - Thomas Tallis.mp3
My Music [CJRT 1995.04b.xx] 198x.xx.xx - Quartet for the End of Time - Olivier Messiaen.mp3
My Music [CJRT 1991.11c.xx] 198x.xx.xx - Piano Medley.mp3
Becomes
My Music [CJRT 1991.11d.xx] - Coffee Cantata - JS Bach.mp3
My Music [CJRT 1992.01a.xx] - Spem in Alium - Thomas Tallis.mp3
My Music [CJRT 1995.04b.xx] - Quartet for the End of Time - Olivier Messiaen.mp3
My Music [CJRT 1991.11c.xx] - Piano Medley.mp3
-
no, the issue was mine, I just started doing without actually thinking about what I was trying to do (DOH!!)
have you tried the fix? it should be working as expected now
-
have you tried the fix? it should be working as expected now
-Target
Sorry for the tardy reply, I'm struggling with connection problems.
Yes, I tried the updated version. Thanks
The 'between' setting now does chop out stuff between a 'leftpos' and 'rightpos' setting.
Never satisfied, however, I'm hoping for something that chops out material between 'leftpos_1' and 'leftpos_2' as in the example I posted above. I.e., handles fixed-position strings within names of dissimilar lengths.
If you need more time to work on this, feel free to walk to work ;)
-
OK, how about if I ditch the betweens, and add a 'mid' option - same theory as the left/right trim, but with a starting position and the number of characters (the GUI is getting kind of squeezy :tellme:)
[ You are not allowed to view attachments ]
-
[If you need more time to work on this, feel free to walk to work ;)
-cranioscopical
and thanks for the helpful advice (nothing like 2 brisk 75km walks a day!!)
-
OK, how about if I ditch the betweens, and add a 'mid' option - same theory as the left/right trim, but with a starting position and the number of characters -Target
Sounds great to me! Just the job.
(the GUI is getting kind of squeezy :tellme:)
Don't be Bashful, Doc, even if you are getting Sleepy.
and thanks for the helpful advice (nothing like 2 brisk 75km walks a day!!
Aren't you making giant strides?
-
OK, how about if I ditch the betweens, and add a 'mid' option - same theory as the left/right trim, but with a starting position and the number of characters -Target
Sounds great to me! Just the job.
-cranioscopical
I've got a better idea...
(the GUI is getting kind of squeezy :tellme:)
Don't be Bashful, Doc, even if you are getting Sleepy.
Sleepy! That's a beauty! (though Dopey is undoubtedly closer to the mark...)
and thanks for the helpful advice (nothing like 2 brisk 75km walks a day!!
Aren't you making giant strides?
more like the Alzheimers shuffle (FYI it's called OldSimon's at our place...) (and apologies to anyone I might have inadvertently offended with these remarks)
EDIt: speling correction
-
try this then -
EDIT - removed some pesky debugging code
-
try this then -
EDIT - removed some pesky debugging code
-Target
Nice interface option for mid!
The sequence below seems to indicate that Start Pos isn't respected.
Example
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
[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.
-
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)
-
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.
-
I'll look at it over the next couple of weeks (hopefully)
-Target
Oh, I hope you won't. I'd like to think you'll be far too busy enjoying your holiday!
-
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)
-Target
Now there's a metaphor for life as I know it :)
-
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?
-
just for the record, my original request was fulfilled by skwire here (https://www.donationcoder.com/forum/index.php?topic=17371.msg155844#msg155844). 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. :)
-
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...)
-
it was never my intention to produce anything like what this seems to have become - I'm not a coder
-Target
Hahaha...yes, you are! This is how it starts. =] =] =]
-
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.
[ You are not allowed to view attachments ]
-
Resizing the GUI is now possible thanks to Skwire
-Target
Thanks to both of you!
Possible to resize the undo panel at some point? Attachment shows why...
[ You are not allowed to view attachments ]
-
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
-
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...
-
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...
-Target
Thnks 'll g nd s hw t wrks!
-
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.
;)
-
No need to thank me for this, I know how dull your vacation would have been without it.
-cranioscopical
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
-
Target: some problem in the initial start-up (code below) but restarting the 2nd time turns out ok.
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..
[ You are not allowed to view attachments ]
-
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!
-
Target: some problem in the initial start-up (code below) but restarting the 2nd time turns out ok.
Error: Submenu does not exist. The current thread will exit.
-lanux128
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..
-lanux128
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.
-cranioscopical
welcome to my world...
-
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-Target
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..
-lanux128
what resolution are you running? it's fine here (laptop @ 1280 x 800)-Target
desktop @ 1152 x 864. font size: normal (96 dpi)
-
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-Target
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..
-lanux128
what resolution are you running? it's fine here (laptop @ 1280 x 800)-Target
desktop @ 1152 x 864. font size: normal (96 dpi)
-lanux128
Same display issue here (1600x1200: normal)
-
did you forget something there Chris or are you getting into minimal statements ?!! :)
-
did you forget something there Chris or are you getting into minimal statements ?!! :)
-tomos
Distracted in the middle of posting. :-[
-
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.
[ You are not allowed to view attachments ]
The checkboxes are simple to use, and provide the necessary input/feedback, however they don't necessarily convey the intent. Normal response to a checkbox is either true or false, where false means no selection has been made. In this case however an unchecked state has a valid meaning (select files AND folders) - the caption states ALL, however the box is unchecked, which would probably indicate to most users that no selection is made...
I've tried to think of a better way to do this (in the limited amount of space) but I've come up dry - closest I can get is to use a button or a drop down list, but both use significantly more real estate, and a button isn't any real advancement on the existing checkbox...
Any and all suggestions gratefully received (many thanks, in advance!!)
-
Any and all suggestions gratefully received (many thanks, in advance!!)
-Target
Not ignoring you... all I can do to get a working connection to DoCo at the moment (https://www.donationcoder.com/forum/esmileys/gen3/1Small/klnie.gif)
-
that was a general request, nothing pointed, so no foul (apart from the language...)
I'm with you on the connection issue - we used up our monthly hours on the 6th and our ISP basically cut us off cold. We'd never done this before so we had no idea what was going on (I logged a fault on the phone line!!)
-
a further update - I changed the checkboxes to radio buttons which is a little more intuitive (still no feedback huh...)
also 'fixed' a handful of other bugs and got the MRU menu working (better :huh:)
there is still a bug with deleting entries from the drop down list (for some reason I can't delete the last entry) and there's an annoying flicker when you add or remove folders (this has something to do with the MRU menu, I'm just not altogether sure what...)
I suspect this is getting perilously close to the point where I toss the whole thing in the bin and start again (https://www.donationcoder.com/forum/esmileys/gen3/1Small/SHOCKING.GIF)
(my eyes are actually starting to look like that too, and oh, the twitching...)
-
still no feedback huh...-target
Sorry!
For my part, I apologize... here, the metaphorical roof fell in and buried me. Still digging out!
There's something happening with rename/undo that I want to explore.
I need to grab a few screen shots in order to explain (once/if I'm sure it's not my own fault -- usually is).
Thanks for the additional work on this.
I can't think of a smarter way to handle the interface.
Be nice if the 'Add' button could remember the last directory.
Sorry about your eyes. Tried goggling for a solution?
-
Okay, here's my situation.
It's all in here
I load a test folder with a few files by using the add button
(keep an eye on the file "Mono,duo,trio").
[ You are not allowed to view attachments ]
I highlight four that I want to fix, setting parameters in 'Mid' boxes,
hit 'Apply' and they're nicely renamed.
[ You are not allowed to view attachments ]
Oops, I change my mind... undo.
I don't understand the file-name display in the undo panel.
Follow the rules for stupid users and hit 'All'.
Okay... but what about the slippery "Mono,duo,trio" item?
[ You are not allowed to view attachments ]
-
a further update where I have resolved the aforementioned problem with deleting from the dropdown (the MRU list now seems to work as intended as well)
flickering is caused by updates to the MRU (seems the menu bar has to be removed before I can update the menu - have to see if I can find a fix to this, or a better way to do it...)
I'll have a play with the undo functionality to see if I can duplicate your issue - you should be able to select an item (or items) and undo, or if you 'select all' it should, well, undo all... Note that when you undo it should reload the list so the sort will change...
Having just written this it occurs to me that this may have something to do with the delimiters used in storing the list - I've been playing with them in the main window and can't remember if I extended those changes to the undo list...
I've changed the ADD button to default to the last loaded folder (seems to work but not tested rigorously)
again, my feedback comments weren't pointed at anyone so no apologies are necessary - this thread seems to be getting an inordinate amount of reads so I assumed others must also be watching (or is that just your OCD?) who might have something to add/suggest (but apparently not...)
and FYI, eye've goggled myself blind, but haven't seen anything that might help
-
I've changed the ADD button to default to the last loaded folder (seems to work but not tested rigorously)
-Target
Thanks, I'll take it for a walk.
and FYI, eye've goggled myself blind, but haven't seen anything that might help
-Target
These comments are getting cornea!
-
compared to you, I am but a lowly pupil
but I dilate, appreciate your help with this!!
-
compared to you, I am but a lowly pupil
-Target
Lowly? Don't lie down on the job, fifty eye lashes for you!
Is it me, or is something broken now?
Can't get file names to appear in the list, but they do show in the drop-down...
Load through 'Add' button leaves the list blank, same with drag-drop.
See?
[ You are not allowed to view attachments ]
-
not lying down, I'm flat out (and totally brow beaten...)
from the drop down list it looks like you added a single file (or dropped a bunch of files) - this is something I've never considered and which may go a long way to explaining things.
dropped or added paths are considered paths to search for files, not actual entries.
I've always operated under the assumption that users would be working with folders rather than individual files, which logically fits with the OP.
If you want to use it with loose files I'll have to look at that further...
and thanks for the feedback (keep it coming!)
-
dropped or added paths are considered paths to search for files, not actual entries.
I've always operated under the assumption that users would be working with folders rather than individual files, which logically fits with the OP.
If you want to use it with loose files I'll have to look at that further...
-Target
Always operate under the influence, or under the assumption that the patient is an imbecile.
You're right I was being dumb and don't want to affect individual files
Drag/drop folder works... BUT I tried d-d only because pointing to a folder using 'Add' does nothing at the moment (did in previously version).
Also, I see that changing the 'length' spinner isn't modifying the .ini file.
I'm flat out (and totally brow beaten...)-Target
Dare I risk saying take a look before heading in another direction?
[edit: still can't proof read]
-
not operating under the influence, but certainly generating effluent...
i always try and work to the lowest common denominator (easy, 'cos it's usually me...)
...pointing to a folder using 'Add' does nothing at the moment (did in previously version)
again, 'adding' files works fine for me - try clearing the session and if that doesn't work, WIN+F10 to reload the script
Also, I see that changing the 'length' spinner isn't modifying the .ini file
changing the spinner only filters the list - if you want to change the default go to options in the file menu (or delete your ini file and you'll get a default one, with ...erm... a default of, well, one)
Dare I risk saying take a look before heading in another direction?
well, you dared, though in hindsight I'm not sure if that was wise or not
-
Still can't get files in using 'Add' button.
I had tried killing off the ini.
Going to try the age-old remedy... reboot :o
changing the spinner only filters the list...
well, you dared, though in hindsight I'm not sure if that was wise or not-Target
He who spins dares (or is that too sassy?)
-
spinners are grinners (or is that groaners?)
-
spinners are grinners (or is that groaners?)
-Target
I have a confession, time to grin and bare it...
I recovered the previous version from backup and ran that... same problem with loading files.
Oho! Who's the common denominator here? C'est moi!
Now I realize that, today, I'm trying to load the files from a link/shell object rather than the real folder.
(Don't ask! Don't pursue it!)
So, I put back the latest version but I still get the same renaming anomalies that I showed in the screen shots above.
(BTW, How about putting version number in the title bar from now on, at least for testing purposes?)
-
FWIW, I have a test folder for playing with this.
Below is a list of the admittedly quirky file names that reside there
Any sense in your creating dummy files with these names to see if you get the same issue there as I have here?
This one
My Music [CJRT 1991.11e.xx] 198x.xx.xx - Mono,duo,trio - Rondo Allegro.mp3
doesn't seem to get 'undone' back to its original name.
I'm using 64 and mid 9,30.
Names
My Music 199x.xx.xx - Symphony No.4 - Brahms.mp3
My Music 199x.xx.xx - The King's Singers.mp3
My Music D03 - On the Water - Schubert and Delius.mp3
My Music [CJRT 1991.11c.xx] 198x.xx.xx - Piano Medley.mp3
My Music [CJRT 1991.11d.xx] 198x.xx.xx - Coffee Cantata - JS Bach.mp3
My Music [CJRT 1991.11e.xx] 198x.xx.xx - Mono,duo,trio - Rondo Allegro.mp3
My Music [CJRT 1992.01a.xx] 198x.xx.xx - Spem in Alium - Thomas Tallis.mp3
My Music [CJRT 1992.01b.xx] 198x.xx.xx - Fidelio - Beethoven.mp3
My Music [CJRT 1995.04a.xx] 198x.xx.xx - Nessun Dorma - Puccini.mp3
My Music [CJRT 1995.04b.xx] 198x.xx.xx - Quartet for the End of Time - Olivier Messiaen.mp3
My Music [KALW 2006.10.06] C16 1982-xx-xx - Crescendo; Barber of Seville - Rossini.mp3
My Music [KWAX-2006.10.14] C17 1982-xx-xx - Suppe Tchaikovsky Pique Dame.mp3
My Music [KWAX-2006.10.21] Cnn 1982-xx-xx - Messaien--Turangalila Symphony.mp3
My Music [KWAX-2006.10.28] Cnn 1982-xx-xx - Elgar - The Music-Makers.mp3
-
I have a confession, time to grin and bare it...
AAAAAAAAAAAAAAAAAAAGH, MY EYES, MY EYES!!!!!!!
So, I put back the latest version but I still get the same renaming anomalies that I showed in the screen shots above.
(BTW, How about putting version number in the title bar from now on, at least for testing purposes?)
simple answer to this one - i haven't had a chance to do anything about this yet (too busy jousting with you at the moment). I'll try and duplicate your files and see what I come up with
A version number is a good idea, but what version do i start at (0.00.00.00.00.00.00.00.26?)
-
AAAAAAAAAAAAAAAAAAAGH, MY EYES, MY EYES!!!!!!!
-Target
I'm sure they are appealing.
I'll try and duplicate your files and see what I come up with
A version number is a good idea, but what version do i start at (0.00.00.00.00.00.00.00.26?)
-Target
Thanks
and
Naught's had, all's spent - where our desire is got without content.
-Bill S.
-
I'm sure they are appealing.
peeling might be closer to the mark...
-
This one
My Music [CJRT 1991.11e.xx] 198x.xx.xx - Mono,duo,trio - Rondo Allegro.mp3
doesn't seem to get 'undone' back to its original name.-cranioscopical
the issue is the comma's in the name (still working on a fix...)
-
try this then...
-
try this then...
-Target
Very nice. Thanks!
Sorry about the commas, I didn't think of that... it's the way the file arrived here.
I just grabbed a bunch at random for testing purposes and stuck them into a test folder
It would be very helpful if successive runs of MTF could remember the previous folder from which files were loaded.
At the moment, I run MTF, hit 'Add', and then go down through My Computer - Drive - Dir - SubDir.
I don't see why you can't spend an extra bus trip or two on working to save me 10 seconds :)
Thanks again!
-
Sorry about the commas, I didn't think of that... it's the way the file arrived here.
that's called normal use, no need to apologise.
but it leads me to some interesting questions regarding potential delimiters...
It would be very helpful if successive runs of MTF could remember the previous folder from which files were loaded.
have you tried the MRU (under the file menu)
I don't see why you can't spend an extra bus trip or two on working to save me 10 seconds
seems perfectly reasonable to me
-
It would be very helpful if successive runs of MTF could remember the previous folder from which files were loaded.
have you tried the MRU (under the file menu)
I don't see why you can't spend an extra bus trip or two on working to save me 10 seconds
seems perfectly reasonable to me
-Target
Yebbut, while that works (here) with successive runs of MTF without closing it, it does not persist from use to use.
So, close MTF, reopen MTF, MTF MRU AWOL.
[ You are not allowed to view attachments ]
and
You have a fine grasp of what is important.
-
did you click on the MRU menu option (it doesn't automagically display)
it's working here
[ You are not allowed to view attachments ]
what's in your ini file (curious to know if the MRU entries are getting saved)
-
did you click on the MRU menu option (it doesn't automagically display)
it's working here
(see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=17371.msg160762#msg160762))
what's in your ini file (curious to know if the MRU entries are getting saved)
-Target
Yes, I did click the MRU menu option. Nothing occurs -- no sub-menu.
Here's the quirky bit, in the .ini file the [MRU] section is nicely populated (MRU1 through MRU9) with the file name of the last directory opened!
So,
Deleted the .ini
Ran MTF
Opened folder.
Closed MTF
Opened .ini
Confirmed folder appears in ini MRU list -- it does
Closed .ini
Ran MTF
Clicked File/MRU
No sub-menu
??
Clearly it's me if it's working for you. What have I missed?
-
Clearly it's me...
clearly...
to be honest I have no idea what your problem might be (hehehe) - try deleting all your current verions and running the attached and see what happens (at least we'll be sure to be running the same versions)
-
Clearly it's me...
clearly...
to be honest I have no idea what your problem might be (hehehe) - try deleting all your current verions and running the attached and see what happens (at least we'll be sure to be running the same versions)
-Target
Did that. Works now. Well done!
Odd, because the version I was using was the most recent previous one (that fixed the comma-in-name issue).
Well now how am I going to find a way to torment you?
:Thmbsup:
-
Well now how am I going to find a way to torment you?
I'm sure you'll come up with something (your challenge, should you choose to except it...)
and if no one's got anything else on the the current incarnation (anyone?) I might try my hand at a version with a preview of the changes...
Lanux - i can't duplicate your issue with the options dialog box. I tried several different resolutions but they all displayed fine (if you're still listening, are you still having this issue??)
-
Well now how am I going to find a way to torment you?
I'm sure you'll come up with something (your challenge, should you choose to except it...)
-Target
Leave it out, mate, that's impossible!
I might try my hand at a version with a preview of the changes...-Target
Icing on the cake would be some form of live highlighting that responds to the spinner,
such that the effect of setting mid values would be visible in the display.
[ You are not allowed to view attachments ]
-
Lanux - i can't duplicate your issue with the options dialog box. I tried several different resolutions but they all displayed fine (if you're still listening, are you still having this issue??)-Target
don't worry, i'm still listening. it's a bit better now. see for yourself.. also nice work on the MRU.. :up:
Now | Before |
[ You are not allowed to view attachments ] | (https://www.donationcoder.com/forum/index.php?action=dlattach;topic=17371.0;attach=39973;image) |
-
Icing on the cake would be some form of live highlighting that responds to the spinner,
such that the effect of setting mid values would be visible in the display. (see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=17371.msg160838#msg160838))
-cranioscopical
not sure how if that is even possible, but I'll have a look - I was actually thinking more along the lines of this
[ You are not allowed to view attachments ]
changes would be displayed in real time, but not applied until you actually APPLY them
don't worry, i'm still listening. it's a bit better now. see for yourself.. also nice work on the MRU.. :up:
-lanux128
i can make the dialog a little taller if you'd like
and just out of curiosity, has this been of any use to you?
-
Icing on the cake would be some form of live highlighting that responds to the spinner
-cranioscopical
not sure how if that is even possible, but I'll have a look - -Target
It's not worth more than three or four bus trips.
My problem is that I find it a bit difficult to count characters on the screen but that's for me to solve if the coding is a swine to do.
I was actually thinking more along the lines of this
(see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=17371.msg160948#msg160948))
changes would be displayed in real time, but not applied until you actually APPLY them -Target
The live preview thing looks spiffy.
and just out of curiosity, has this been of any use to you?
-Target
Not addressed to me, but heck no! For my part I was simply stringing you along to see how far you'd take it :)
Kidding aside, this is a very nice tool and I certainly do appreciate the effort that's gone into it.
I still burn stuff to CDs for use in one of our cars and file names can be a problem there.
MTF will be very useful.
-
Not addressed to me, but heck no! For my part I was simply stringing you along to see how far you'd take it :)
I figured as much
MTF will be very useful.
glad to hear it - I was really just curious, 'cos I probably won't (I generally change my settings to allow writing of r e a l l y l o n g n a m e s (joliet?))
-
Quote from: lanux128 on Today at 06:53:38 AM
don't worry, i'm still listening. it's a bit better now. see for yourself.. also nice work on the MRU.. thumbs up
i can make the dialog a little taller if you'd like
and just out of curiosity, has this been of any use to you?-Target
i've been a very interested observer but i haven't used it as much i would like to.. :(
-
a
i've been a very interested observer but i haven't used it as much i would like to.. :(
-lanux128
not a problem, just curious as you did say Skwire's solution fulfilled your requirements...
-
I generally change my settings to allow writing of r e a l l y l o n g n a m e s (joliet?)
-Target
Oh, the cr*p you let onto your system!
It's time for a better scheme than that.
Wherefore art thou, Romeo?
-
Wherefore art thou, Romeo?
check the coding snacks forum...
-
Hello - I know I am responding to an old thread (hopefully someone will read this)
Question about this software:
1)
right now it cuts by nnn characters
is it possible to make it cut back TO nnn characters instead?
For example, I want the total length of all - folder/paths etc. to be 180 characters, so whatever the length,
when cutting back length should remain 180 characters)
(a bit similar to CutLongNames.exe)
2) when cutting back a list of files, it should add a digit to avoid duplicate errors
so
files that have been cut back, should then read
longfilenamescutbackto180char_01.jpg
longfilenamescutbackto180char_02.jpg
longfilenamescutbackto180char_03.jpg
3)
is it possible to make this as a plug-in for Directory Opus (or work as a toolbar button)
4)
is it possible to add this to shell:sendto context menu.
meaning:
I would select a number of files, then select context menu "Maim The File" - and 'send' the files to Main The File so they are then cut back as per settings saved in Maim The File.
(Maim - what does this stand for?)
=
-
right now it cuts by nnn characters
is it possible to make it cut back TO nnn characters instead?
should be possible, though there is a likelyhood that you'll end up with nonsense filenames. And what do we do where the path is the offending portion of the string (eg path lengths of 175+ characters)?
is it possible to make this as a plug-in for Directory Opus (or work as a toolbar button)
I don't use dopus so I can't help with this, but plenty here do so someone else may be able to advise
is it possible to add this to shell:sendto context menu.
meaning:
I would select a number of files, then select context menu "Maim The File" - and 'send' the files to Main The File so they are then cut back as per settings saved in Maim The File.
possibly... it could certainly be added to the context menu, but what you're asking for is more of a batch operation which is something I'll have to look into...
(Maim - what does this stand for?)
to maim is to injure such that a permanent disfigurement results. It was a play on words given the potential for damage when renaming files