Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Simple word and character count for TextEdit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Simple word and character count for TextEdit
Authored by: toc-rox on May 09, '10 05:28:56AM
Paragraphs added:
tell application "TextEdit"
	set paragraph_count to count paragraphs of document 1
	set word_count to count words of document 1
	set char_count to count characters of document 1
	set show_words to (paragraph_count as string) & " paragraphs" & return & (word_count as string) & " words" & return & (char_count as string) & " characters"
	set dialog_title to "TextEdit Word Count"
	display dialog show_words with icon 1 with title dialog_title buttons {"Ok"} default button "Ok"
end tell
edited for width by crarko
Edited on May 13, '10 05:16:05AM by crarko

[ Reply to This | # ]