I want to intercept a paste command to replace any tabs or returns in it with
spaces so they don't get pasted into a table object. The script below works for
returns but not tabs. Notice that color of the word tab is not even the same as
the color of the word return. It is like the tab
Sorry the actual script is:
on pasteKey -- replace returns and tabs with spaces before pasting for
attachments description (actually any table)
if the target contains revCell- then
set the clipboardData[text] to replaceText(the
clipboardData[text],return,space)
set the
'tab' is a keyword, but not a command , 'return' is a command in a
function and will be a different color
'space' and 'tab' should be the same color, just as 'comma'.
Try the simple 'replace tab with space in var
--
get the clipboardData[text]
replace tab with space in IT
set the