Copy link to clipboard
Copied
Hello, everyone;
I am writing a script in JavaScript to fill in information in an Illustrator proof template. I would like to reduce the text size of the contents of a text frame if it exceeds a certain number of characters, to prevent text overflow. I have been trying the .characterAttributes.size property, but it doesn't seem to do anything. Here is an example:
reducedFileName.textRange.characterAttributes.size = 4;
I.e. take out "contents." Contents is a string value.
Copy link to clipboard
Copied
reducedFileName.textRange.characterAttributes.size = 4;
I.e. take out "contents." Contents is a string value.
Copy link to clipboard
Copied
Thanks, femkeblanco! That worked like a charm.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now