Copying an Action From One Script to Another

Description

Actions can be copied from one script to another. Learn how this is done in this guide.

Some of the examples in this guide require the "Learning Action Scripting" workspace. See Creating Your First Action Script to learn how to get the "Learning Action Scripting" workspace installed.

When you are editing an Action Script in the Code Editor, Alpha Anywhere lets you to edit multiple scripts at once, and copy Actions from one Action Script to another.

To demonstrate, edit the "Lesson1" script created in the first lesson.

  1. Activate the Control Panel.

  2. Click the Code tab.

  3. Right-Click "Lesson1" and select Design. The Code Editor shows the script:

    images/copying_1.gif
  4. Click the New Action Script button  on the toolbar. The Code Editor now looks like this:

    images/copying_2.gif
  5. There is a tab for the "Lesson1" script, and another tab for the new script temporarily titled "Untitled_1". Click the Lesson1 tab to return to editing this script.

  6. Right-Click the "Prompt for Text Action" and select Copy.

    images/copying_3.gif
  7. In this example, you are going to copy the first two actions in the script. Select the Multiple Actions radio button.

    images/copying_4.gif
  8. Enter "2" for the Number of Actions.

  9. Click OK to close the dialog box. The two actions have now been copied to the clipboard and may be pasted into any Action Script.

  10. Click the Untitled_1 tab to switch back to the new script.

  11. Right-click anywhere on the white space in the Action Editor and select Paste from the menu. Alpha Anywhere pastes the two Actions into the script.

  12. Click the Save button and name it "Lesson2".

    images/copying_6.gif

Limitations

Desktop Applications Only