Page 1 of 1

Truncating a token?

PostPosted: 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?

Re: Truncating a token?

PostPosted: 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.