The Insert Select 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: