on mouseUp
get me
repeat with x = the number of chars in it down to 1
put char x of it before tNumber -- adds the current number at
the front
put char x of it before tTemp
if the number of chars in tTemp mod 3 = 0
then put comma before tNumber -- adds a comma every 3 places
end repeat
if char 1 of tNumber = comma then delete char 1 of tNumber
put tNumber into me
end mouseUp |