Recording paths in photoshop

The Insert Path command lets you record a path as part of an action. When played back, the entire path is reproduced as part of the action.

To record a path:

1 Start recording an action.
2 Select a path.
3 Choose Insert Path from the Actions palette menu.