Script Workspace keyboard shortcuts (macOS)
Use these keyboard shortcuts in the Script Workspace to work with scripts.
Create and edit scripts
To |
Press |
Create a new script |
Command-N |
Save a script |
Command-S |
Open the selected script in a new tab |
Command-T |
Open the selected script in a new window |
Command-Shift-T |
Run the selected script |
Command-R |
Save and run the selected script |
Command-Option-R |
Debug the selected script (when Use advanced tools is selected) |
Command-Shift-R |
Save all scripts and debug the selected script (when Use advanced tools is selected) |
Command-Shift-Option-R |
Close the current tab |
Command-W |
Close all tabs |
Command-Option-W |
Close the Script Workspace |
Command-Shift-W |
Move to the next tab in the script editing pane |
Command-Shift-} |
Move to the previous tab in the script editing pane |
Command-Shift-{ |
Move the selected script step up or down in the script |
Command-Control-Up Arrow, Command-Control-Down Arrow |
Add a comment on a blank line |
# |
Display script step options |
+ (plus) |
Move through the options between brackets in the script editing pane |
Left Arrow, Right Arrow, Tab, Shift-Tab |
Select a script step option when it is in focus |
Space bar |
Remove focus from all script step options |
Esc |
Delete the selected script or script step |
Delete, Backspace |
Duplicate the selected script or script step |
Command-D |
Disable the selected script step (when Use advanced tools is selected) |
Command-/ |
Print the selected script |
Command-P |
Expand and collapse blocks of control script steps
To select a block of control script steps, select the block's first step.
To |
Press |
Collapse the selected block of steps |
Command-Left Arrow |
Expand the selected block of steps |
Command-Right Arrow |
Collapse the selected block of steps and its substeps | Option-Command-Left Arrow |
Expand the selected block of steps and its substeps | Option-Command-Right Arrow |
Collapse all steps and substeps in the current script | Option-Shift-Command-Left Arrow |
Expand all steps and substeps in the current script | Option-Shift-Command-Right Arrow |