InsertText File Command

INSERTTEXT File Commands

Inserts text from a text file at the insertion point.

inserttext [FILE filepath] [FILTER name] [progress] [charset] [CONVERTQUOTE toggle] [CONVERTDASH toggle] [LINEHASLF toggle] [RETAINFORMAT toggle] [TEXTCODE code] [DOCUMENT name | WINDOW name]

FILE/s The filename and path of the file.

FILTER/k The filter to use.

Options: ASCII | IFFCTXT | IFFFTXT | WORDWORTH | EXCELLENCE | PROWRITE | WORD | WORDPERFECT | WORDPERFECT5 | FINALWRITER.

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).

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.

WINDOW/s The window name. Default=current.

Notes:

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

If the FILTER parameter is not specified, the Insert Text dialog box will open.

Examples:

inserttext file text:lorem.txt filter ascii status

 

InsertText  Command Definition  url:PGScmd/inserttext
  created:2006-03-30 14:58:59   last updated:2009-04-16 17:34:39
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

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

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

Gets the {...} .

InsertText ([FILE "file"] [FILTER filtername] [STATUS | NOSTATUS] [DOCUMENT document | WINDOW document-window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For InsertText