Last active
November 17, 2016 03:51
-
-
Save FirePanther/e9eb83d3947465e8caa6 to your computer and use it in GitHub Desktop.
Count Selected Characters and Words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
set w to count words of (input as string) | |
set ws to "s" | |
if w = 1 then set ws to "" | |
set c to count characters of (input as string) | |
set cs to "s" | |
if c = 1 then set cs to "" | |
display dialog (c & " character" & cs & " (" & w & " word" & ws & ") in the selected text." as string) buttons {"Close"} | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment