Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

NotebookObject

NotebookObject[fe, id]
is an object that represents an open notebook in the front end.
  • fe is a FrontEndObject which 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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team