insert commands the quickest way to automate photoshop - insert commands insted of scripting photoshop

The painting and toning tools, tool options, view commands, and preferences cannot be recorded. However, many commands that cannot be recorded can be inserted into an action using the Insert Menu Item command.
An inserted command is not executed until the action is played. No values for the command are recorded in the action, so the file remains unchanged when the command is inserted. If the command has a dialog box, the dialog box appears during playback, and the action pauses until you click OK or Cancel. You can insert a command when recording an action or after it has been recorded.

Because you can assign a Ctrl key (Windows) or Command key (Mac OS), Function key, or Shift key combination to an action, the insert feature can re-create the functionality found in the Commands palette, which existed in earlier versions of Photoshop.

To insert a menu item in an action:

1 Choose where to insert the menu item:

• Select an action’s name to insert the item at the end of the action.
• Select a command to insert the item at the end of the command.

2 Choose Insert Menu Item from the Actions palette menu.
3 Do one of the following:

• Choose a command from its menu.
• Enter a command in the Insert Menu Item dialog box, and click OK. If you don’t know the full name of the command, enter part of it and click Find, then click OK.
• To insert the Undo, Cut, Copy, Paste, or Clear command, enter its name. Choosing any of these commands from the menu applies the command to the action.

4 Click OK.