Make a shelf button for a script
 
 
 
  1. Select the script code in the Script Editor.
  2. Do one of the following: