Truncating a token?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Truncating a token? Sun May 10, 2020 1:01 am • by Trickyt57
I want Noodle to read the first lines of text of documents and then to use those lines as the file name. However I want to limit the file name length to 100 characters. Often the first 100 characters are spread over more than one page. Whilst I can create a token containing this text, I often find my token has too many characters to be used. How to I truncate the token length to the desired number of characters?
Trickyt57
 
Posts: 56
Joined: Tue Sep 18, 2018 12:17 am

Re: Truncating a token? Mon May 11, 2020 9:28 am • by Mr_Noodle
No built-in way to do this unless you specify a custom attribute with 100 characters, which won't work if it has fewer, in which case you would need to have cases for 99 chars, 98 chars, etc.

You'll probably need a script to do this aspect of it, unfortunately.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support