Skip to main content
Participant
February 15, 2011
Answered

Script to do a character count?

  • February 15, 2011
  • 1 reply
  • 1084 views

I was wondering if anyone knows of a script that would cout the number of characters in a text box in an illustrator document?

Thanks so much!

This topic has been closed for replies.
Correct answer Muppet_Mark-QAl63s

This may do you if you selected the box in question… (It includes white space characters as is)…

alert(app.activeDocument.selection[0].contents.length);

1 reply

Muppet_Mark-QAl63s
Muppet_Mark-QAl63sCorrect answer
Inspiring
February 15, 2011

This may do you if you selected the box in question… (It includes white space characters as is)…

alert(app.activeDocument.selection[0].contents.length);

designmspAuthor
Participant
February 15, 2011

You are awesome! Thank you so much! That worked perfectly!

Amanda