Remove Blank Spaces

How would I edit a naming script to remove spaces in the catalog number.

Example:
[CAT 12345] to [CAT12345]

1 Like

Note that %catalognumber% is a multi-value variable, so the “proper” way of removing the spaces from each element is to use the $map() function. Assuming that you want to remove the spaces from the tags as well the file naming, you can do this in a tagging script like:

$map(%catalognumber%,$replace(%_loop_value%, ,))

If you only want to do the replacement in your file naming, then you can place the line above at the top of your naming script (rather than in a tagging script) and I believe that will make the changes for you.

3 Likes