Define a custom script action
To add a custom script action, follow these steps:
Click Actions on the tab bar. The Actions panel appears.
To add an action, click Add Action .
Type a name for the new action.
- To add a parameter, click + Add parameter. Specify the name and the type of the parameter. The type can be string, number, or Boolean.
You can use parameters avoid creating several, nearly identical custom actions where only a specific variable is different. For each occurrence of the same custom action in a script, you can define a different value for the same parameter.Note: You can define up to 25 parameters for each custom action. Click + Add Step.
Note: An action can execute one or more steps in sequence. Each step is a built-in action or a custom action. Actions can evaluate variables to determine whether steps run.Perform one of these steps:
- Add other steps as needed.
- If you create multiple steps, you can use the up and down arrows to reorder them. Steps execute in top-down order.
To finish, click Save.
Tips:
- To delete a step, click Delete Step .
- To cut a selection, click Cut .
- To copy a selection, click Copy .
- To collapse an action, click Collapse .
- To open a collapsed action, click Expand
- To modify an existing custom action, click Edit Custom Action
- To convert an existing action to a custom action, from the action, click Convert to Custom Action .
[NEXT] Was this article helpful?
Get user feedback about articles.