ExportText File Command

EXPORTTEXT File Commands

This exports the selected text.

exporttext [FILE filepath] [FILTER name] [progress] [mode] [CONVERTQUOTE toggle] [CONVERTDASH toggle] [LINEHASLF toggle] [RETAINFORMAT toggle] [TEXTCODE code] [DOCUMENT name]

FILE/s The filename and path of the file to export.

FILTER/k The filter to use.

Options: ASCII | IFFFTXT | IFFCTXT | WORDWORTH.

charset/k The character set to use.

Options: AMIGA | WINDOWS | MSDOS | MACINTOSH. ASCII only.

progress/k Toggle to display a progress meter.

Options: STATUS | NOSTATUS (default).

mode/k The user prompt mode.

Options: FORCE | ALERT | QUIET (default).

Force overwrites without asking for confirmation, alert opens an alert box for confirmation, and quiet overwrites without confirmation but returns an error if a file is overwritten.

toggle/k Toggles a feature.

Options: TRUE | FALSE.

CONVERTQUOTE Converts typewriter quotation marks to typographic quotation marks. Not applicable to iffctxt. Default=true.

CONVERTDASH Converts double dashes to en dashes and triple dashes to em dashes. Not applicable to iffctxt. Default=true.

LINEHASLF Assumes that each line ends with a line feed rather than each paragraph. Applicable to ascii|iffftxt only.

Default=false.

RETAINFORMAT Exports the attributes as well as the text. Not applicable to ascii.

Default=true.

TEXTCODE/k The text code engine to use.

Options: PAGESTREAM | PAGEMAKER | XPRESS | PROPAGE | NONE

(default).

DOCUMENT/s The document name. Default=current.

Notes:

If the FILE parameter is not specified, a file selector will open.

If the FILTER paragraph is not specified, the Place Graphic dialog box will open.

Examples:

exporttext file ram:MyText.FTXT filter iffftxt status

 

ExportText  Command Definition  url:PGScmd/exporttext
  created:2006-03-30 14:03:54   last updated:2006-03-30 14:03:54
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For ExportText
Dan Kilroy wrote...2006-05-04 16:36:36

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

ExportText ([FILE "file"] [FILTER filtername] [STATUS | NOSTATUS] [QUIET | FORCE | ALERT] [DOCUMENT document | WINDOW document-window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

Tim Doty wrote...2009-01-28 09:22:47

filter includes "rich text format", which is presumably coded 'RTF'

Template is incorrect/incomplete. For example, charset/k is listed as a parameter, but missing from the template

Deron Kazmaier wrote...2009-01-28 15:19:02

The original command documentation leaves out a fair amount of detail.

Export/Import commands show only the parameters which are general to all Export/Import. Each filter itself can also have parameters, as well as PageStream may interpret parameters which are specific to the type of data being processed.

For example the ASCII text filter will have parameters for defining a character set, "smart" quotes and dashes and textcodes.

RTF will have a parameter to retain the attributes. Character set is defined in the RTF specs.

User Contributed Comments For ExportText