Create and use commands from history steps, Record and save commands – Adobe Dreamweaver CC 2014 v.13 User Manual
Page 364
If you pasted steps into a text editor or into Code view or the Code inspector, they appear as JavaScript code. This can be useful for
learning to write your own scripts.
Create and use commands from history steps
Save a set of history steps as a named command, which then becomes available in the Commands menu. Create and save a new command if you
might use a set of steps again, especially the next time you start Dreamweaver.
Create a command
1. Select a step or set of steps in the History panel.
2. Click the Save As Command button, or select Save As Command from the History panel’s context menu.
3. Enter a name for the command and click OK.
The command appears in the Commands menu.
Note: The command is saved as a JavaScript file (or sometimes an HTML file) in your Dreamweaver/Configuration/Commands folder. If you
are using Dreamweaver on a multiuser operating system, the file is saved in the specific user’s Commands folder.
Use a saved command
1. Select an object to apply the command to, or place the insertion point where you want to apply the command.
2. Select the command from the Commands menu.
Edit a command name
1. Select Commands > Edit Command List.
2. Select a command to rename, enter a new name for it, and then click Close.
Delete a name from the Commands menu
1. Select Commands > Edit Command List.
2. Select a command.
3. Click Delete, and then click Close.
Record and save commands
Record a temporary command for short-term use, or record and save a command to use later. Dreamweaver retains only one recorded command
at a time; as soon as you start recording a new command, the old command is lost, unless you save it before recording the new command.
Temporarily record a series of steps
1. Select Commands > Start Recording, or press Control+Shift+X (Windows) or Command+Shift+X (Macintosh).
The pointer changes to indicate that you’re recording a command.
2. When you finish recording, select Commands > Stop Recording, or press Control+Shift+X (Windows) or Command+Shift+X (Macintosh).
Play back a recorded command
Select Commands > Play Recorded Command.
Save a recorded command
1. Select Commands > Play Recorded Command.
2. Select the Run Command step that appears in the History panel’s step list, and then click the Save As Command button.
3. Enter a name for the command, and click OK.
The command appears in the Commands menu.
More Help topics
357