Page 1 of 1

Truncate file-/foldername to <x> words

Posted: 21 Mar 2018 10:34
by highend
A simple script (I need this very often) that truncates the name of a file / folder to the number of
words you select from a drop-down list.

Word separators are: space, dot, comma, semicolon, underscore, hyphen

So e.g. if you choose 3 from the drop-down and one of the selected items is a folder named

Code: Select all

The.Greatest.Truncation.English.MD.DL.720p.x264-MYSELF
Then it will be renamed to

Code: Select all

The Greatest Truncation
v0.1
Truncate item name.xys