Saving Commands as PspScript Files

Commands selected in the History palette can quickly be saved to the .PspScript file format, or copied to the clipboard.

Saving to the .PspScript Format

  1. Click the desired commands listed in the History palette— Shift-click to select adjacent commands, or Ctrl-click to select non-adjacent commands.

  2. Right-click on any selected command to display the History palette's context menu, and then choose Save to script. This displays the Save As dialog.

  3. If necessary, navigate to the folder where the script will reside.

  4. In the File name field, enter a name for the script.

  5. In the Save only active commands check box, do one of the following:

  6. Mark this check box (it is marked by default) to not include undone commands in the script.

  7. Uncheck this box if you want to include the undone commands in the script. Be aware, however, that the undone commands will be active (not undone) when the script is executed.

  1. Click Save.

Copying Commands to the Clipboard

To copy the Python syntax associated with selected commands to the clipboard:

  1. Click the desired commands listed in the palette— Shift-click to select adjacent commands, or Ctrl-click to select non-adjacent commands.

  2. Right-click on any selected command to display the History palette's context menu, and then choose Copy to the Clipboard.

  3. Open a text editor such as Notepad, or a Python-aware text editor application such as PythonWin or Idle.

  4. In the text editor application, paste the clipboard contents. You'll then see the syntax associated with the commands you selected.

A Note About Scripting and Plug-ins

Be aware that if you've executed commands involving plug-ins, scripting these commands may not produce the intended results. In particular, plug-in commands will not execute in Silent mode and may not default to the parameters originally used.

 

Related Topics

Saving and Applying Quickscripts

Applying Selected Commands to Other Images

Undoing and Redoing History Palette Actions