Source ( front | next | none | clipboard), Send text as rtf | send rtf | rtf | text as rtf), Before execution – Nisus Writer Pro User Manual

Page 437: After execution, End nisus macro block, Replace

Advertising
background image

Customizing & Automating Solutions

417

#source ( front | next | none | clipboard)

This tells Nisus Writer Pro 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 Pro 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 Pro 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 Pro 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 Pro to stop looking for directives.

Advertising