InDesign includes two panels for scripting: the Scripts panel and the Script Label panel.
The Scripts panel is where you run scripts without leaving InDesign. The Scripts panel displays the scripts that are located in the Scripts folders in the InDesign application folder and in your Preferences folders. If you create or receive a script, you can place it in the Scripts folder so that it shows up in the Scripts panel.
You can then double-click a script in the Scripts panel to run it, or you can run scripts using Quick Apply.
The Script Label panel lets you specify a label for a page item, such as a text frame or shape. Specifying labels for page items is especially useful for writing scripts in which you need to identify an object.