ExampleEntry
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
| Field | Type | Description |
|---|---|---|
name | string | Read only. The display name of the example document (the filename without directory path). |
path | string | Read 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.