FrontEndTokenExecute["cmd"]
executes the specified front end command token, typically corresponding to a front end menu item.


FrontEndTokenExecute
FrontEndTokenExecute["cmd"]
executes the specified front end command token, typically corresponding to a front end menu item.
Details

- FrontEndTokenExecute[nb,"cmd"] executes a command targeting a specific notebook.
- FrontEndTokenExecute[nb,"cmd",param] executes a command with a parameter.
- FrontEndTokenExecute[args] is equivalent to FrontEndExecute[FrontEndToken[args]].
Examples
Basic Examples (2)
Create a new notebook by using a front end token command:
Create a notebook with two cells:
Merge the cells by using a FrontEndToken:
Tech Notes
History
Introduced in 1999 (4.0)
Text
Wolfram Research (1999), FrontEndTokenExecute, Wolfram Language function, https://reference.wolfram.com/language/ref/FrontEndTokenExecute.html.
CMS
Wolfram Language. 1999. "FrontEndTokenExecute." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FrontEndTokenExecute.html.
APA
Wolfram Language. (1999). FrontEndTokenExecute. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FrontEndTokenExecute.html
BibTeX
@misc{reference.wolfram_2025_frontendtokenexecute, author="Wolfram Research", title="{FrontEndTokenExecute}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/FrontEndTokenExecute.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_frontendtokenexecute, organization={Wolfram Research}, title={FrontEndTokenExecute}, year={1999}, url={https://reference.wolfram.com/language/ref/FrontEndTokenExecute.html}, note=[Accessed: 11-August-2025]}