Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.
Also make sure you've read the Forum Guidelines before posting in this forum.
![]() ![]() |
Apr 14 2012, 13:46
Post
#1
|
|
|
Member Group: Full Members Posts: 118 Joined: 6-February 09 From: india Member No.: 8481 Mp3tag Version: v2.54 |
how to make the filenames shorter?
i have long filenames. i want to make the length of the filenames to 25 characters including the spaces between words. how is it possible? |
|
|
|
Apr 14 2012, 13:57
Post
#2
|
|
![]() Member Group: Full Members Posts: 1571 Joined: 15-March 09 From: Germany Member No.: 9103 Mp3tag Version: 2.50 |
how to make the filenames shorter? i have long filenames. i want to make the length of the filenames to 25 characters including the spaces between words. how is it possible? Action: Format Value Field: _FILENAME or Converter: Tag-Filename Formatstring: $left(%_filename%,25) |
|
|
|
Apr 14 2012, 15:37
Post
#3
|
|
![]() Member Group: Full Members Posts: 3154 Joined: 9-December 09 From: Norddeutschland / Northern Germany Member No.: 11458 Mp3tag Version: 2.55a |
Action: Format Value Field: _FILENAME or Converter: Tag-Filename Formatstring: $left(%_filename%,25) Just as an extra option: if you want to make sure that you do not get too many errors that the renaming fails as there is already a file with that (shorter) name, it is ususally a good idea to take care that a number, e.g. the track number does not get trunkated. So either you construct a filename that limits the number of characters of all the variables to a certain maximum or you subtract the 4 characters needed for the tracknumber from that length. -------------------- 42 - wie war die Frage / what was the question / comment était la question
|
|
|
|
Apr 14 2012, 15:54
Post
#4
|
|
![]() Member Group: Full Members Posts: 4129 Joined: 26-May 06 From: Wuppertal, Germany, Planet Earth Member No.: 3194 Mp3tag Version: 2.54 |
... if you want to make sure that you do not get too many errors that the renaming fails as there is already a file with that (shorter) name, it is ususally a good idea to take care that a number, e.g. the track number does not get trunkated. So either you construct a filename that limits the number of characters of all the variables to a certain maximum or you subtract the 4 characters needed for the tracknumber from that length. Do you think about something like this? $regexp(%_filename%,'^(\d+)(.+)$','$1')$left($regexp(%_filename%,'^(\d+)(.+)$','$2'),22) DD.20120414.1652.CEST -------------------- * Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥ |
|
|
|
Apr 17 2012, 01:48
Post
#5
|
|
|
Member Group: Full Members Posts: 118 Joined: 6-February 09 From: india Member No.: 8481 Mp3tag Version: v2.54 |
Do you think about something like this? $regexp(%_filename%,'^(\d+)(.+)$','$1')$left($regexp(%_filename%,'^(\d+)(.+)$','$2'),22) DD.20120414.1652.CEST can u make it simpler please. what does it mean? i assume this much. action> replace with regular expression field> filename regexp> ? replace with> ? would u mind explaining it? thanks, have a nice day. |
|
|
|
Apr 17 2012, 02:52
Post
#6
|
|
![]() Member Group: Full Members Posts: 4129 Joined: 26-May 06 From: Wuppertal, Germany, Planet Earth Member No.: 3194 Mp3tag Version: 2.54 |
can u make it simpler please. what does it mean? ... The Mp3tag scripting code line demonstrates a possible implementation of ohrenkino's remark. You can fill this code line into the format string edit field of the converter "Tag - Filename". See the preview result what the code line will do when applying it to the file name. User ohrenkino has clarified that the shortening of the file name may cause problems, so that "double" file names may arise. This problem could be diminished by saving the unique leading track number. Shortening should only be applied to the following textual part of the filename. If you want to try to solve your task as simple as possible, then the function $left() from the basic set of Mp3tag scripting functions might work for you, see post #2 from user pone. DD.20120417.0400.CEST This post has been edited by DetlevD: Apr 17 2012, 03:03 -------------------- * Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥ |
|
|
|
Apr 18 2012, 00:36
Post
#7
|
|
|
Member Group: Full Members Posts: 118 Joined: 6-February 09 From: india Member No.: 8481 Mp3tag Version: v2.54 |
Just as an extra option: if you want to make sure that you do not get too many errors that the renaming fails as there is already a file with that (shorter) name, it is ususally a good idea to take care that a number, e.g. the track number does not get trunkated. So either you construct a filename that limits the number of characters of all the variables to a certain maximum or you subtract the 4 characters needed for the tracknumber from that length. perfect. it works. thanks a lot. have a nice day |
|
|
|
Apr 18 2012, 00:39
Post
#8
|
|
|
Member Group: Full Members Posts: 118 Joined: 6-February 09 From: india Member No.: 8481 Mp3tag Version: v2.54 |
|
|
|
|
Apr 18 2012, 00:43
Post
#9
|
|
|
Member Group: Full Members Posts: 118 Joined: 6-February 09 From: india Member No.: 8481 Mp3tag Version: v2.54 |
The Mp3tag scripting code line demonstrates a possible implementation of ohrenkino's remark. You can fill this code line into the format string edit field of the converter "Tag - Filename". See the preview result what the code line will do when applying it to the file name. User ohrenkino has clarified that the shortening of the file name may cause problems, so that "double" file names may arise. This problem could be diminished by saving the unique leading track number. Shortening should only be applied to the following textual part of the filename. If you want to try to solve your task as simple as possible, then the function $left() from the basic set of Mp3tag scripting functions might work for you, see post #2 from user pone. DD.20120417.0400.CEST thanks for the prmpt reply. it is clear now. |
|
|
|
Apr 18 2012, 01:27
Post
#10
|
|
|
Member Group: Full Members Posts: 118 Joined: 6-February 09 From: india Member No.: 8481 Mp3tag Version: v2.54 |
thanks for the prmpt reply. it is clear now. after typing the above message and piosted it,i wanted to edit my post. i corrected the spelling of prompt and i typed some explanations to DetlevD post. then i clicked full edit. then i saw a blank message box instead of the text. guide me please. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 17:42 |