Low-Level Notebook Programming

In the Wolfram Language's unified symbolic architecture, every Wolfram Language notebook you see is represented as a symbolic expression that can be manipulated and controlled programmatically using the Wolfram Language. The Wolfram Language's low-level notebook programming functions give direct incremental access to notebook expressions, allowing you successively to perform arbitrary operations on the "selection" in any notebook.

Notebook Handles

(RefLink[Notebooks, paclet:ref/Notebooks]) — a list of open notebooks ((RefLink[NotebookObject, paclet:ref/NotebookObject]) objects)

(RefLink[NotebookLocate, paclet:ref/NotebookLocate]) — locate a notebook, a web notebook, or a tag in a notebook

Cell Handles

(RefLink[Cells, paclet:ref/Cells]) — a list of cells in a given notebook ((RefLink[CellObject, paclet:ref/CellObject]) objects)

Boxes

(RefLink[BoxObject, paclet:ref/BoxObject]) — object representing an individual box

Operations on Complete Notebooks

(RefLink[Options, paclet:ref/Options]), (RefLink[SetOptions, paclet:ref/SetOptions]), (RefLink[CurrentValue, paclet:ref/CurrentValue]) — get or set any option of any notebook object

(RefLink[NotebookInformation, paclet:ref/NotebookInformation]) — information on open notebooks

(RefLink[NotebookImport, paclet:ref/NotebookImport]) — import structured material from a notebook

(OrangeLink[Symbolic Notebook Structure », paclet:guide/LowLevelNotebookStructure])

(RefLink[NotebookGet, paclet:ref/NotebookGet]) — get the symbolic representation of a displayed notebook

(RefLink[NotebookPut, paclet:ref/NotebookPut]) — display the notebook corresponding to a symbolic expression

(RefLink[CreateWindow, paclet:ref/CreateWindow]) — create a new notebook window with a given set of options

Modifying Notebook Contents

(RefLink[NotebookFind, paclet:ref/NotebookFind]) — find a structure within a notebook

(RefLink[SelectionMove, paclet:ref/SelectionMove]) — move the selection in a notebook

(RefLink[NotebookRead, paclet:ref/NotebookRead]) — read the current selection as a symbolic expression

(RefLink[NotebookWrite, paclet:ref/NotebookWrite]), (RefLink[NotebookApply, paclet:ref/NotebookApply]) — write, apply content at the current selection

(RefLink[NotebookDelete, paclet:ref/NotebookDelete]) — delete the current selection

(RefLink[NotebookSelection, paclet:ref/NotebookSelection]) — a handle to a selection in a notebook

(OrangeLink[Global Front End Operations », paclet:guide/ProgrammaticNotebookAndInterfaceCustomization])

(RefLink[FrontEndTokenExecute, paclet:ref/FrontEndTokenExecute]) — execute a menu-like front end command

(RefLink[FrontEndExecute, paclet:ref/FrontEndExecute]) — send an expression to be executed by the front end