Onetastic Macro Documentation >
Each object in macros have a set of properties. Some of these properties are read-only
while most others are read/write. There are cases where some property may be write-only. For instance
formatting properties like bold, italic etc. on Paragraphs are write-only as they can be set but
cannot be determined since a paragraph can contain text with mixed formatting.
Properties are accessed with the property access operator (.) and they
can be used to filter queries if you are looking for objects
with certain property values (e.g. looking for a section with a given color):
ForEach ($Section in GetCurrentNotebook().sections)
If ($Section.color == "blue")
$Section.color = "red"
They can also be used to sort objects (e.g. sorting pages by date):
SortObjects(GetCurrentSection().pages, "dateTime", false)
You can find the list of properties for each object in object documentation.