This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Notebooks  /
NotebookApply

  • NotebookApply[ notebook , data ] 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[ notebook , data , sel ] writes data into a notebook and then sets the current selection to be as specified by sel.
  • The first argument of NotebookApply is a NotebookObject.
  • NotebookApply does the same as NotebookWrite, except that it replaces the first selection placeholder in data by the current selection.
  • NotebookApply is often used in setting up actions for buttons in palettes.
  • Selection placeholders are represented by the character or \[SelectionPlaceholder].
  • Possible settings for sel are as in NotebookWrite.
  • See the Mathematica book: Section 2.10.3.
  • See also: NotebookWrite, NotebookRead, SelectionMove, ButtonFunction.