Create and use commands from history steps, Create a command, Use a saved command – Adobe Dreamweaver CC 2015 User Manual
Page 328: Edit a command name, Delete a name from the commands menu
321
Page content and assets
Last updated 6/3/2015
2
Click Copy Steps in the History panel
.
Note: The Copy Steps button in the History panel is different from the Copy command in the Edit menu. You can’t use
Edit > Copy to copy steps, although you do use Edit > Paste to paste them.
Be careful when you copy steps that include a Copy or a Paste command:
• Don’t use Copy Steps if one of the steps is a Copy command; you may not be able to paste such steps the way you
want.
• If your steps include a Paste command, you can’t paste those steps, unless the steps also include a Copy command
before the Paste command.
3
Open the other document.
4
Place the insertion point where you want it, or select an object to apply the steps to.
5
Select Edit > Paste.
The steps are played back as they’re pasted into the document’s History panel. The History panel shows them as only
one step, called Paste Steps.
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.