This release introduces a new set contents of statement.
Update
To update, download and install the latest version from the product’s installation section.
Changes
-
Adds a
«set [the] contents of picture number to expression»statement that imports an image directly from expression into the picture frame indexed by number (starting with 1, counting from the start of the prototype, ignoring the effect of conditionals). Expression provides the “bits” of the picture, in any format supported by InDesign’s Place (PNG, JPEG, EPS, PDF, etc.), encoded as a Base64 text string. An empty expression is handled like a missing picture, where the import either stops with a “no encoded data to import” error or ignores the missing picture if the “Keep importing after missing pictures” preference is selected. The image format’s default settings are used so that no UI is shown for the import. No file link is generated for the import. -
Adds a
«set [the] contents of textframe number to expression»statement that imports text directly from expression into the text frame indexed by number (starting with 1, counting from the start of the prototype, ignoring the effect of conditionals). Expression provides either plain text or the raw “bits” of a text format supported by InDesign’s Place (InDesign Tagged Text, Word, plain text, etc.) encoded as a Base64 text string. If expression is empty, nothing is imported. The text format’s default settings are used so that no UI is shown for the import. -
Adds an encoding option to the
filecontents(path[, encoding])operator. In addition to “windows”, “mac”, and “unicode”, theencodingparameter can now be “raw” (or “binary”) to return the untranslated contents of the specified file as a Base64-encoded text string. -
Treats a path segment with no separator in a
picturefoldersstatement as a POSIX-style relative path instead of an old HFS-style absolute path. For example, in«set picturefolders to "xyz"»,xyzis now tried as the name of a folder within the document’s folder (POSIX-style relative path) rather than as the name of a volume (HFS-style absolute path). In the rare situation where a single path segment needs to be seen as an HFS-style volume name, simply append an HFS-style colon separator, like«set picturefolders to "xyz:"». (macOS only)
