Importing & Reusing Task Steps

This article covers the following topics:

Overview

Copying/Pasting Task Steps

Saving a Copy of a Task

Importing Task Steps

Overview


In computer programming, the reuse of code is a common technique which attempts to save time and energy by using the same segment of code in multiple applications, thus, reducing redundant work. The AutoMate Task Builder accomplishes code reuse in several different ways. The Copy and Paste functions can be used to copy steps of one task and paste them onto another. The Copy function, in effect, copies the .AML code associated to each step, which can be pasted into another task or a document outside of AutoMate, such as Notepad. However, a Copy Description function is also available allowing the plain-English text description of each step (that normally appears in the Steps pane when the View option is set to Visual instead of AML) to be copied. Steps of an existing task can be re-used in a newly created task by selecting the Save As option then saving a copy of the task under a new name. In addition, the Import Steps option can import all of the steps of an existing task onto another.

Copying/Pasting Task Steps


Cut/Copy and Paste allows you to perform code reuse within a single task by cutting or copying a group of steps and pasting them onto another section of the task. Because more than one instance of the Task Builder can be opened simultaneously, code reuse can be performed across multiple tasks as well.

To copy steps from one task onto existing steps of another task:

  1. Open the tasks you wish to work with by doing one of the following:

  1. Select the steps you wish to copy from the first task and click the Copy button on the Ribbon or Toolbar or right-click and select Copy. To select a group of steps, hold down CTRL during selection. Use CTRL+A to select all.

  2. In the Steps pane of the second task, select the step where you want to place the previously copied steps and click the Paste button on the Ribbon or right click and select Paste. The copied steps are pasted directly above the selected step of the second task.

To copy steps from one task onto a newly created task:

  1. First, create a new task by doing one of the following:

  2. Open the task you wish to copy steps from by doing one of the following:

  1. Select the steps you wish to copy and press Copy on the Ribbon or Toolbar or right-click and select Copy. To select a group of steps, hold down CTRL during selection. Use CTRL+A to select all.

  1. Select the steps you want to copy. To select a group of steps, hold down the SHIFT key and click the first and the last step in the group. To select multiple separate steps, hold down CTRL while selecting the desired steps. To select all steps, press CTRL+A.

  2. Click anywhere inside the empty Steps pane of the second task and select Paste from the Toolbar or right-click and select Paste from the right-click menu.

NOTE: You can also paste copied steps or step descriptions in other documents such as e-mail messages or text files.

To copy and paste step descriptions:

  1. In the Task Builder Steps pane, select the step(s) in which to copy the description from. To select more than one step, hold down CTRL during selection. Use CTRL+A to select all.

  2. If using the Ribbon interface, select Copy Description from the Clipboard command group (shown above).

OR

If using the Menu/Toolbar interface, on the Edit menu, click Copy Description.

  1. Go to the location where you want to place the copied descriptions, and press CTRL+V or select Paste from the right-click menu.

Saving a Copy of a Task


To save a copy of a task:

  1. From Task Builder, if using the Ribbon interface, click the Open button from the Application menu

OR

If using the Menu/Toolbar interface, select Open from the File menu.

  1. Navigate to the task (.AML) file you would like to save a copy of, then click Open.

  2. Click Save As on the Application menu (if using the Ribbon interface) or click Save As from the File menu (if using the Menu/Toolbar interface).

  3. Navigate to the desired location, enter a name for the new task, and click Save.

Importing Task Steps


To import steps from one task to another:

  1. Open the desired task or create a new task and edit its steps to open the Task Builder.

  2. If using the Ribbon interface, click the Application button and select Tools -> Import Steps

OR

If using the Menu/Toolbar interface, on the Edit menu, click Import Steps.

  1. Navigate to the task (.aml) file that has the steps you want to import, and click Open. All the steps of the task are imported into the end of your open task.

NOTE: You can change the placement of any step by right-clicking the step from the Steps pane and selecting Move Up  or Move Down from the menu that appears.

See Also

About Actions

Adding Task Steps

Editing Task Steps

Printing or Sending Task Steps

Searching Within Tasks

See Also


About Actions | Adding Task Steps | Editing Task Steps | Printing or Sending Task Steps | Searching Within Tasks