Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Low-Level Notebook Programming > Programmatic Notebook & Interface Customization >
Mathematica > Notebooks and Documents > Notebook & Interface Customization > Programmatic Notebook & Interface Customization >

FrontEndExecute

FrontEndExecute[expr]
sends expr to be executed by the Mathematica front end.
  • The standard Mathematica front end can handle only specific notebook manipulation commands such as NotebookApply, NotebookLocate and SelectedNotebook. It uses the versions of these commands in the FrontEnd` context.
This calls the front end's CellPrint function:
Create a notebook with two cells:
Merge the cells by using a FrontEndToken:
This calls the front end's CellPrint function:
In[1]:=
Click for copyable input
A
 
Create a notebook with two cells:
In[1]:=
Click for copyable input
Merge the cells by using a FrontEndToken:
Use FrontEndExecute to do a sequence of front end functions:
Carry out the same steps by kernel functions:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team