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

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