Microsoft Word Suite
The following characters are converted as described in this table.
Removed unless preceded by character 13 (paragraph), then converted
to character 9 (tab).
10 (line feed)
Converted to character 13 (paragraph) unless preceded by character
13, then removed.
31 (optional hyphen)
194 (optional hyphen)
202 (nonbreaking space)
Converted to character 32 (space).
This example removes nonprinting characters from the selected text and inserts the result into a new
set clean to clean string item to check (content of text object of selection)
set myDoc to make new document
set content of text object of myDoc to clean
This example removes nonprinting characters from the selected field code and then displays the
set show field codes of view of active window to true
select field 1 of active document
display dialog (clean string item to check content of text object ¬
drop cap object: Removes the dropped capital letter formatting.
tab stop object: Removes the specified custom tab stop.
text input object: Deletes the text from the specified text form field.
key binding object: Removes the key binding from the key bindings list and resets a built-in
command to its default key assignment.
clear drop cap/tab stop/text input/key binding Required. An expression that returns a drop cap,
tab stop, text input, or key binding object.