Send text as rtf | send rtf | rtf | text as rtf, Before execution, After execution – Nisus Writer Express User Manual

Page 271: End nisus macro block

Advertising
background image

Customizing & Automating Solutions

251

#source { front | next | none | clipboard }

This tells Nisus Writer Express where to get the text that will be sent to the Perl Script. Choose one
of the options, e.g. '#source front'. Front is the front document, next is the document behind the
front document, none is no data and Clipboard is whatever text is on the Clipboard.

#destination { front | next | none | clipboard | new } [replace]

Destination tell Nisus Writer Express what to do with any data returned from the Perl script. The
options are the same as for source, except 'new' which creates a new document. The replace option
is used if you want to overwrite the destination, otherwise any text returned from the Perl script is
appended to the destination. Replace only has an effect if destination is front or next.

#{Send Text as RTF | Send rtf | rtf | text as rtf}

If any variant of this option is present, then the text will be sent to Perl as RTF. Anything returned
from the Perl script will be treated as RTF and an attempt will be made to convert it back into styled
text before putting it into the destination.

#Before Execution

This tells Nisus Writer Express to treat the following lines (minus the leading '#') as menu macros to
be run before execution of the Perl script. Any other directive will stop collection of menu macro
lines.

#After Execution

This tells Nisus Writer Express to treat the following lines (minus the leading '#') as menu macros to
be run after the execution of the Perl script. Any other directive will stop collection of menu macro
lines.

#End Nisus Macro Block

This tells Nisus Writer Express to stop looking for directives.

Advertising