Page 1 of 1

truncate rename tokens

PostPosted: Thu Jun 20, 2013 4:44 am
by Graf_Wetter
Hi
is it possible to do a truncate of rename tokens to a given number of letters or digits ?
All I can find is the "replace text ..." feature with search and replace of predefined sequences.

Thanks
Graf Wetter

Re: truncate rename tokens

PostPosted: Thu Jun 20, 2013 10:15 am
by a_freyer
The best option would be to use custom tokens. For example, if you have a token with 11 digits and you only want the first five, you might do this:

Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     name matches (first five digits •)(last six digits •)

Do the following to the matched file or folder:
     rename with pattern (first five digits •)


Where:

(first five digits •) = (1)(1)(1)(1)(1), or 'digit digit digit digit digit digit'

(last six digits •) = (1)(1)(1)(1)(1)(1), or 'digit digit digit digit digit digit digit'