Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ExampleEntry

API 1.18

An ExampleEntry represents a single bundled example document. Instances are contained in the documents list of an ExampleCategory returned by Application.getExamples() and are read-only.

Use open() to open an example safely. Opening via Application.openDocument(entry.path) directly will associate the document with the example file on disk, so a Save would overwrite it.

Fields

FieldTypeDescription
namestringRead only. The display name of the example document (the filename without directory path).
pathstringRead only. The absolute file path to the example document. Use open() to open it safely, or pass path to document.importDomain() to import its domain into the current document.

Methods

open( )

Opens this example as a new untitled document and returns the Document. The opened document has no associated file path, so its first Save prompts the user to choose a location (Save As behaviour) — the bundled example file is never overwritten. This matches the behaviour of opening an example through the Flying Logic UI.