To see this effect working from a script, create two card fields, then
choose a different font and style for each. Then create a button with the
following script. Enter text into card field 1, then click the button, with
and without the optionKey down. (optionKey down demonstrates the shiftKey
effect)
on mouseUp
if the optionKey is down then
select text of cd field 1
doMenu "Copy Text"
select before word 1 of cd field 2
type "v" with commandKey,shiftKey
else
select text of cd field 1
doMenu "Copy Text"
select before word 1 of cd field 2
type "v" with commandKey
end if
end mouseUp
This article is adapted from the Claris Tech Info database.