Spaces in scripts

Hi!

I have a script that contains the following commands:

-LA ON

layer name

The problem is that the layer name contains a space and this is interpreted as enter. I have already tried putting the name in quotation marks, but that doesn't work either. Does anyone here have a solution?
Alternatively, a script that replaces all spaces in layer names with underscores would be helpful.

Thank you!

Comments

  • Hello.

    You could use double quotes.
    This worked fine in my testing.

    -la on "Layer 01"

    To clarify the white spaces:

    -la¬on¬"Layer¬01"¬¬

    where ¬ represents a space character.

  • I tried that before and it didn't work but now it works…🙃🙃

    Thank you!