Make a shelf button for a script
 
 
 
  1. Select the script code in the Script Editor.
  2. Do one of the following:
    • Drag the selection with up to the shelf.
    • In the Script Editor menus, select File > Save Script to Shelf.