8

How can I add a comment in the script in Automator in OS X? I've tried many variants but they don't work.

Dmitry
  • 938
  • 2
  • 9
  • 14

1 Answers1

6

Based on the crickets chirping here, I'm going to guess that there are no built-in non-acting actions. There is a simple workaround, however:

Create a comments-only script

enter image description here

If you don't like the # syntax, there's also bash multiline syntax

enter image description here

…or for a more muted effect, the Run Javascript and Run Applescript panes use gray for comments…

enter image description here

Of course, any time your compilable "comment scripts" haven't yet compiled—such as just after opening—you'll get a lovely shade of purple instead of gray. Which could be kinda cool, depending on your preferences.

enter image description here

clozach
  • 1,173