Function Repository Resource:

ClickedNotebook

Source Notebook

Click a notebook to get it

Contributed by: Bob Sandheinrich

ResourceFunction["ClickedNotebook"][]

gives the next selected notebook in the front end.

Details and Options

The result is a NotebookObject.
The evaluation will wait until another notebook is clicked.
Within the EvaluationNotebook, clicks are ignored.
While the evaluation is happening, a panel will include a button that can be used to select the EvaluationNotebook.

Examples

Basic Examples (1) 

Get a NotebookObject by clicking the notebook:

In[1]:=
ResourceFunction["ClickedNotebook"][]
Out[1]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 09 November 2018

License Information