This is the code I have come up with but seems to come up with a random string of numbers:
Code: Select all
on mouseUp
local tNumber, tNumOutput
put field "Text" into tNumber
repeat for each char theChar in tNumber
put chartonum(theChar) after tNumOutput
end repeat
put tNumOutput into field "Count"
end mouseUp
Thanks
Omar
