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

NotebookApply

NotebookApply
writes data into a notebook at the current selection, replacing the first selection placeholder in data by the current selection, and then setting the current selection to be just after the data written.
NotebookApply
writes data into a notebook and then sets the current selection to be as specified by sel.
  • NotebookApply has the same effect as NotebookWrite, except that it replaces the first selection placeholder in data by the current selection.
  • NotebookApply can be used in setting up actions for buttons in palettes.
Create a notebook and select the first :
Apply a template to make the the base of a superscript structure:
Apply a template and select all of the data written:
Create a notebook and select the first :
In[1]:=
Click for copyable input
Apply a template to make the the base of a superscript structure:
Apply a template and select all of the data written:
Select an in a cell that is not visible in the notebook window:
Usually, writing data to a location makes the document scroll to that location:
Again, select an that is not visible in the notebook window:
With AutoScroll set to False, the location where data is written stays off screen:
Moving the selection slightly, without AutoScroll->False, scrolls to where the new data is:
New in 3