Skip to content

Instantly share code, notes, and snippets.

@monokano
Last active July 19, 2021 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monokano/4531966aeec25dff4c5e774709bb74a3 to your computer and use it in GitHub Desktop.
Save monokano/4531966aeec25dff4c5e774709bb74a3 to your computer and use it in GitHub Desktop.
// Script for Illustrator
// Replaces all spaces in the selected swatch name with underscores.
selSwatches = app.activeDocument.swatches.getSelected();
for(i=0; i<selSwatches.length; i++) {
selSwatches[i].name = selSwatches[i].name.split(" ").join("_");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment