This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

NotebookObject

NotebookObject
is an object that represents an open notebook in the front end.
  • fe is a that specifies the front end in which the notebook is open.
  • id is an integer that gives a unique serial number for this open notebook.
  • In StandardForm and OutputForm, notebook objects are printed so as to indicate the current title of the window that would be used to display the notebook.
  • Within any open notebook, there is always a current selection. The current selection can be modified by applying functions such as SelectionMove to NotebookObject.
Functions that create notebooks return NotebookObject expressions:
Functions that act on notebooks take a notebook object as an argument:
Retitling a notebook changes the way the NotebookObject expression is displayed:
The NotebookObject expression itself has not changed:
Functions that create notebooks return NotebookObject expressions:
In[1]:=
Click for copyable input
Out[1]=
Functions that act on notebooks take a notebook object as an argument:
Retitling a notebook changes the way the NotebookObject expression is displayed:
In[3]:=
Click for copyable input
Out[3]=
The NotebookObject expression itself has not changed:
In[4]:=
Click for copyable input
Out[4]=
There are several ways to obtain a NotebookObject:
Open a notebook from a file:
Use the NotebookObject to refer to the notebook in notebook operations:
Read selected data from the notebook:
Set options for the notebook:
Set options for the selected cell:
Insert new material into the notebook:
Save the notebook:
Close the notebook:
Turn a Notebook expression into a NotebookObject:
Turn a NotebookObject into a Notebook expression:
After a notebook has been closed, the NotebookObject can no longer be manipulated:
New in 3 | Last modified in 4