Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to add "OK" to an album folder / how to rename a folder ? (Read 2017 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to add "OK" to an album folder / how to rename a folder ?

Hello,

I'm looking for a way to rename a folder in f2k from the "File Operations Setup" dialogue window.
Basicly, I just want to add " OK" to an album-folder.

Say, I have musicfiles in my current playlist, which point to

Code: [Select]
C:\my music\the band\the album\
C:\his music\another band\another album\
C:\her music\just another band\just another album\
[...more and more and more and more and more...]
and I want to "move" (rename) them to
Code: [Select]
C:\my music\the band\the album OK\
C:\his music\another band\another album OK\
C:\her music\just another band\just another album OK\
[...more and more and more and more and more...]
So basicly, I just want to add OK to the last folder to indicate, the "folder"/the music was checked OK

How would I accomplish this within f2k?
Is there any component which could be helpful? (I've checked foo_renamer, but it only renames files)

From the Wiki and from a post by a user which had a similar usecase back in 2011:
Quote
Destination Folder: You cannot use title formatting in this field, and the folder must already exist.

I've tried some magic like ./ or .. or ... but they all relative to the f2k install directory.

f2k is able only to work with absolute paths, which will result in a "bad" renaming/moving, because f2k will move all the different artists and albums to the given drive/folder, but I really like to have them stay at their place.

I also tried
Code: [Select]
%path%\%directory%\%filename%
as a "File name pattern", but no luck, of course.

Any Ideas?

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #1
Not aware how to do that with FB2000 but it's easy to accomplish using MP3Tag with the tag to filename function.

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #2
Is there any component which could be helpful? (I've checked foo_renamer, but it only renames files)
You are mistaken. It renames directories when the rename string contains directories.

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #3
It renames directories when the rename string contains directories.
I'm glad, thats true but I gave up too early! :-) After fiddeling with the configuration, I managed to get what I'd like to have.
Thanks.

Unfortunately the component does, what it says, and renames, but not move.

So, if I have
Code: [Select]
C:\my music\the band\the album\01. a song.mp3
C:\my music\the band\the album\02. a song.mp3
C:\my music\the band\the album\03. a song.mp3
And apply it only to one single file
Code: [Select]
C:\my music\the band\the album\01. a song.mp3
then, the fine component renames the whole folder and the result looks like this:
Code: [Select]
C:\my music\the band\the album OK\01. a song.mp3
C:\my music\the band\the album OK\02. a song.mp3
C:\my music\the band\the album OK\03. a song.mp3
and not (what I was guessing) like this:
Code: [Select]
C:\my music\the band\the album OK\01. a song.mp3
C:\my music\the band\the album\02. a song.mp3
C:\my music\the band\the album\03. a song.mp3
In addition, the f2k-library does only recognize the folder changes for the renamed files.

BUT, those are minor details, which I guess, can live with.

Thanks again (you both).

I found no thread for this fine component, but I'd like to suggest some things I stumbled across:

  • remember the size and position of the window "Renamer"
  • remember the position of the rezised columns "Old Name", "New Name", "Status"
  • add a pulldown menu in the window "Renamer" for the settings created under Preferences/Tools/Renamer, so users can easily chose from very quick,
  • add some user-definable "Character replacement" in the "Preferences: Renamer" window in addition to the existing ones. Say, if a user want to replace all "-" with "_", he can just add those to the prefs.
  • add a button "Config" to the window "Renamer" to access the preferences of the component quickly
  • add load/save buttons to the Pattern pulldown in the "Preferences: Renamer" window, so users can load/save their settings and assign illustrative names easily to recognize after some weeks. (Now, every Pattern is "remembered", which is -especially for loooooooooooong patterns- very confusing to find again old patterns)

But again, those are details, which I guess, can live with :-)

Thanks again!

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #4
I'm confused. You asked about folder renaming and you can't rename a folder without it affecting all the other files is in.

The bundled File Operations component will allow moving individual tracks to a new directory achieving what you really wanted.

There are no plans to make the Renamer component more user-friendly. It only exists to fill a single purpose: allow me to easily rename files and directories to my naming scheme where illegal characters are replaced with similar looking legal characters. For that purpose I only need a single naming pattern. Everything else can be achieved with the built-in File Operations component. If Peter ever allows overriding the hard-coded character replacement rules I'll probably retire my component.

Edit:
In File Operations you have to use a static destination dir and in the pattern you use something like $directory(%path%,1) OK\%filename%

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #5
I'm confused. You asked about folder renaming and you can't rename a folder without it affecting all the other files is in.
I'm Sorry to confuse you with my words and I know about the impacts of renaming a folder with files in it.
Thats why I wrote:
Quote
BUT, those are minor details, which I guess, can live with.
[...]
Unfortunately the component does, what it says, and renames, but not move.
[...]
But again, those are details, which I guess, can live with :-)
I'm not complaining here. Just telling about my experience and in the end, your fine component does the things I needed it to do. Great.

The bundled File Operations component will allow moving individual tracks to a new directory achieving what you really wanted.
No. Because of:
Edit:
In File Operations you have to use a static destination dir and in the pattern you use something like $directory(%path%,1) OK\%filename%

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #6
Good point. I suppose my component has some other unexpected benefits.

 

Re: How to add "OK" to an album folder / how to rename a folder ?

Reply #7
I suppose my component has some other unexpected benefits.
It sure has :-)

But thats only by design and because
There are no plans to make the Renamer component more user-friendly.
:-)

The attached Screenshot shows a simple problem:

The folder is renamed and foo_renamer cannot access further files in this folder now.
The Renaming-Error is "Object not found".
 
(No album artists are set in the files.)
pattern used (WIP):
Code: [Select]
$puts(D,[$cut($if3(%DISCOGS_RELEASED_RAW%,%DISCOGS_RELEASED%,%DISCOGS_MASTER_RELEASE_YEAR%),4)]) $if($get(D),,$puts(D,[$trim($cut(%DATE%,4))])) $puts(AL,[$trim($cut($swapprefix(%album%,The,Die,A,Das),120))]) $puts(AA,[$trim($cut($swapprefix(%album artist%,The,Die),120))])$if2($get(AA),)$if2(' - '$get(AL),)$if($get(D),$if($strcmp($get(D),' '),,' ('$get(D)')'),) OK\%filename%

I understood why the error pops up, so there is not help needed, just wanted to add some prove for improvement :-D

EDIT:
Also, the fine component does not throw an error, if the new renamed folder (column "New Name") already exists.
The component tells that everything worked good, but f2k indicates then, that the path is wrong.  (it shows a ? in the lenght column and all tags are gone, because the new path in the media-library are wrong now. I attached a new screenshot.)
This happens mostly, if the folder contains subfolders like CD1, CD2, etc.

Thanks again for your help and your piece of software! Very useful.