JSX prompt() limits user input to 255 characters.
When I enter more than 255 characters in a prompt(), the returning value gets cut off at character 255.
Illustrator 25.4.1
WIN 11 64-bit
I run the script by clicking File > Scripts > Other Script... and then navigating to the script. When prompted I just copy the value initially assigned to the variable, paste and click OK.
Script:
var pastedValues = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789";
alert(pastedValues + "has a length of " + pastedValues.length);
pastedValues = prompt("Paste values", "");
alert(pastedValues + "has a length of " + pastedValues.length);Thanks.