I wonder if this script can rename my files. I have the following structure:
Folder: Artist - Album (Year) or only
Artist - Album
Files: Track# - Tittel
And I want this filestructure: Artist - Album - Track# - Tittel
Is there a way to batch rename the filename?
-
- Posts: 57
- Joined: Sun Jun 18, 2006 4:43 pm
Re: Is there a way to batch rename the filename?
Regards
SpritHansi
SpritHansi
Re: Is there a way to batch rename the filename?
I suppose you are asking about RegExp Find & Replace script. Yes, it can rename files, but for such simple example like yours, it could be easier to use the Auto-Organize option. Anyway, if you are still interested, here are settings:SpritHansi wrote:I wonder if this script can rename my files.
Find what:
Code: Select all
(.+\\)([^\\]+?)\\([^\\]+?\.[^\.\\]+)$
Regular expression 1: checked
Replace with:
Code: Select all
"$1" & SDB.Tools.FileSystem.CorrectFilename(oSongData.ArtistName & " - " & oSongData.AlbumName) & " - $3"
The Replace with string could be simpler if you don't want to remove the "(Year)" part from the filename:
Code: Select all
"$1$2 - $3"
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
-
- Posts: 57
- Joined: Sun Jun 18, 2006 4:43 pm
Re: Is there a way to batch rename the filename?
Hello again!
Thanks for the scripts. Here's another wish;
If albumtag contains CD1, Disc# is 01. CD2=02......
Possible??
Thanks for the scripts. Here's another wish;
If albumtag contains CD1, Disc# is 01. CD2=02......
Possible??
Regards
SpritHansi
SpritHansi
Re: Is there a way to batch rename the filename?
Yes, it is possible, but you should be more specific. Did you try the "Assign the Disc number from the part of the Album name" preset?SpritHansi wrote:If albumtag contains CD1, Disc# is 01. CD2=02......
Possible??
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
-
- Posts: 57
- Joined: Sun Jun 18, 2006 4:43 pm
Re: Is there a way to batch rename the filename?
If the album contains two or more discs, I have the disknumber in the filename.
<Artist> - <Album> CD1 - <Track#> - <Tittel>
But I want to tag the disc# (CD1) to 01, not CD1...
Understand????
<Artist> - <Album> CD1 - <Track#> - <Tittel>
But I want to tag the disc# (CD1) to 01, not CD1...
Understand????
Regards
SpritHansi
SpritHansi
Re: Is there a way to batch rename the filename?
No, I don't understand. What you want to modify, path/filename or tags? If you want to modify filename and or folders, how they looks now and how do you want they should look after modification? How currently looks your Album and Disc # tags? Did you try the "Assign the Disc number from the part of the Album name" preset?
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
-
- Posts: 57
- Joined: Sun Jun 18, 2006 4:43 pm
Re: Is there a way to batch rename the filename?
I want to modify the disc# tag from
CD1 -> 01
CD2 -> 02
CD3 -> 03
CD1 -> 01
CD2 -> 02
CD3 -> 03
Regards
SpritHansi
SpritHansi
Re: Is there a way to batch rename the filename?
I am sorry, but I cannot read you mind. If you don't have a time to answer to all my questions, I could not help you.
If you want to change only Disc # tags, which allready contains data in form CDx, then simply enter CD as the Find what string and leave the Replace string empty. If you want Disc # tags with leading zero, just choose the "Add the leading zero to the single-digit Track number" preset and change the Into drop-down to Disc #. Understand????
If you want to change only Disc # tags, which allready contains data in form CDx, then simply enter CD as the Find what string and leave the Replace string empty. If you want Disc # tags with leading zero, just choose the "Add the leading zero to the single-digit Track number" preset and change the Into drop-down to Disc #. Understand????
● Magic Nodes 4.3.3 / 5.2 ● RegExp Find & Replace 4.4.9 / 5.2 ● Invert Selection/Select None 1.5.1 ● Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1 ● Expand Child Nodes/Expand All 1.1.2 ● Event Logger 2.7 ● Filtered Statistics Report 1.6 ● Track Redirection & Synchronization 3.4.2 ● Restore/Synchronize Database 3.1.8 / 4.0.1 ● Find Currently Playing Track 1.3.2 ● Queue List 1.2.1 ● Add to Library on Play 1.0.1 ● Tree Report for Child Nodes 1.1.1 ● Update Location of Files in Database 1.4.5 / 2.3 ● Inherit Child Playlists 1.0.3 ● Add Currently Playing/Selected Track(s) to Playlist 1.2
-
- Posts: 57
- Joined: Sun Jun 18, 2006 4:43 pm
Re: Is there a way to batch rename the filename?
Aah. I'll try that.
Sorry for my bad explanation ZvezdanD. But thanks for the help anyway
Sorry for my bad explanation ZvezdanD. But thanks for the help anyway
Regards
SpritHansi
SpritHansi