[X4U] Need Script Editing Advice

Cubeistan cubeistaner at gmail.com
Fri Feb 2 14:53:13 PST 2007


I saw on Daring Fireball the script below that does a word count in
conjunction with ThisService, and want to edit it, so it counts
characters. Can anyone tell me what to edit/substitute? Thanks in advance!


on process(_str)
	tell application "System Events"
		set _appname to name of first process whose frontmost is true
	end tell
	tell application _appname
		display alert "Word count: " & (count words of _str)
	end tell
end process



More information about the X4U mailing list