In the
Script Editor menus, select
File > Save Script to Shelf.
Note:
If you write a custom script to create your own tab on the shelf, you can also choose the icon that appears on this tab. For more information, see the
shelfTabLayout command and the
tabIcon and
tabIconIndex flags.