Binding Scripts to Icons

You can quickly and easily bind a script to any of 50 icons, and then drag the icon to a custom or existing toolbar, or to a menu. By dragging the icon onto a toolbar or menu you can have easier, quicker access to your favorite scripts, and can execute them with a single click.

Be aware that you can use an icon for any number of scripts. This gives you a virtually limitless ability to bind scripts to icons. For example, you could assign a script to the red light bulb icon and drag it to the Photo toolbar. You could then assign a different script to the same icon and drag it to the Adjust menu.

Additionally, once you've created a bound script, you can assign a keyboard shortcut to it as another way to execute the script. For more information, see Assigning and Viewing Shortcut Keys.

Assigning a Script to an Icon

  1. Choose View > Customize. This displays the Customize dialog.

  2. Click the Scripts tab.

  3. Click the Scripts drop-list, and then click the script you want to assign to an icon. (Note that the scripts displayed in this list match those in the Script toolbar's Select Script drop-list.)

  4. Shown below the Scripts drop list are the 50 icons. To assign the displayed script to an icon, click the desired icon, and then click the Bind button in the upper right portion of the Scripts tab. Notice in the Bound Scripts area below, the icon and its associated script appear in the list.

  5. To place the icon in a menu or toolbar:

  6. In the Bound Script area, place the cursor over the icon or the script

  7. Drag the mouse into the menu or toolbar where you want to place the bound script icon

  8. Release the mouse button when the button is in the desired location

When you hold the cursor over the toolbar's script icon, you'll see the path name and file name associated with the script. If you've dragged the script icon into a menu, the menu will display the script's name, and the script's path will appear in the status bar located along the bottom the main Paint Shop Pro window.

Removing a Script from an Icon

To un-bind a script from an icon:

  1. In the Bound Script area of the Customize dialog's Scripts tab, click the icon or script name.

  2. Click the Remove button located below the Bound Scripts list.

Note: Unbinding a script from an icon will also remove it from the user interface and from any keyboard shortcut assigned to it.

Removing a Bound Script from a Menu or Toolbar

To remove a bound script icon from a menu or toolbar, place the cursor over the icon, drag the icon into the Paint Shop Pro workspace, and then release the mouse button.

 

Related Topics

Customizing Toolbars and Menus

Scripting Basics

Assigning and Viewing Shortcut Keys