johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

Comment in script causes new script to be created #1501

Open arkatsy opened 4 months ago

arkatsy commented 4 months ago

Running a script that contains a comment like this:

// value: something

will create a script named "something" in the scripts directory.

Is this expected behavior? I couldn't find anything in the docs.


I fell into this case where I had commented a line like this:

// value: isDark ? LIGHT_THEME_VALUE : DARK_THEME_VALUE,

which was causing an error like this when I was running the script: isdark-light_theme_value-dark_theme_value can only include lowercase, numbers and-. Enter a different name:

It took me some time to figure out what was causing it 😅