Deprecation of numToChar()
Posted: Mon Dec 11, 2017 2:51 am
My simple handler below had been working fine for more than a decade, but it broke when numToChar() was deprecated. Changing it to numToNativeChar() or numToCodepoint() does not do the same thing, so it remains broken. Any suggestion to restore the functionality would be greatly appreciated. Thank you!
function MakeClip tClip
set itemDel to ","
put \
"145,39" & return & \
"146,39" & return & \
"147,34" & return & \
"148,34" & return & \
"150,45" & return & \
"151,45" & return & \
"202,32" & return & \
"208,45" & return & \
"209,45" & return & \
"210,34" & return & \
"211,34" & return & \
"212,39" & return & \
"213,39" into tTable
repeat for each line tLine in tTable
replace numToChar(item 1 of tLine) with numToChar(item 2 of tLine) in tClip
end repeat
return tClip
end MakeClip
function MakeClip tClip
set itemDel to ","
put \
"145,39" & return & \
"146,39" & return & \
"147,34" & return & \
"148,34" & return & \
"150,45" & return & \
"151,45" & return & \
"202,32" & return & \
"208,45" & return & \
"209,45" & return & \
"210,34" & return & \
"211,34" & return & \
"212,39" & return & \
"213,39" into tTable
repeat for each line tLine in tTable
replace numToChar(item 1 of tLine) with numToChar(item 2 of tLine) in tClip
end repeat
return tClip
end MakeClip