Script Editor Icon

Adding and removing comments

You can add comments to your code quickly using the shortcut menu (also know as the contextual menu). The selected text is commented. It will remain in the script but won’t be compiled or executed.

To add or remove comments to a section of code:

Step 1

Select the text to be enclosed with AppleScript comment tags.

Step 2

Control-click in the selected area.

Step 3

Choose Comment Tags.

If the selected text is not commented, comments will be added to it.

If the selected text was already commented, the comments will be removed.

Related Topics

shortcut menus