Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Illustrator swatches problem

Advocate ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

Hi All

I am recording an action wich includes the use of some elements painted with the default swatch named "Registration" working fine, how ever I have a lot of previous documents and in the swatches panel, some of them the registration sawtch appears in spanish as "Registro", so the action fails when is runnig on a document like that. see pictures

I have live with this situation since lot of time but now, I need to fix it for this action to run properly

 

registroSpanish.jpgregistro.jpg

 

We have never ever used the aplication in spanish language, so I cant imagine why this happens

Any body knows how to fix this?, I want all my documents in English, not spanish.

TOPICS
Performance, Scripting

Views

220

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Oct 15, 2021 Oct 15, 2021
you can't rename it manually, it needs a script. You could even add running the script at the very beginning of your action // Rename [Registration] swatch var idoc = app.activeDocument; try { idoc.swatches['[Registro]'].name = '[Registration]'; } catch (e) {} .

Likes

Translate

Translate
Adobe Community Professional ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

record a second Action to take care of the document with Registro and use both as needed

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

Carlos

Sure, I can do that, but the point is to know why this happenned...

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

agree, it'll be good to know

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

Just a guess: I seem to remember that it is possible to permanently change the name of normally non-editable swatches via scripting.

 

And I seem to remember that Carlos was one of the bad guys who once showed how to do it in one of his very good scripts.

 

Am I wrong about that, Carlos?

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

Sounds good...!

Carlos?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

you can certainly Rename [Registration] swatch name Kurt

 

would that help Mario?

 

Registration Swatch name.PNG

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

But how to do it?

I cant doble click on the swatch, nothing happens

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

you can't rename it manually, it needs a script. You could even add running the script at the very beginning of your action

 

// Rename [Registration] swatch

var idoc = app.activeDocument;

try {
    idoc.swatches['[Registro]'].name = '[Registration]';
}
catch (e) {}

.

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 19, 2021 Oct 19, 2021

Copy link to clipboard

Copied

Carlos

I tried but give me an error, I am not good at programing, I did this:

1. copied the script text

2. Pasted int a Text Editor (even pasted in a ScriptEditor app)

3. Saved with the extension .jsx and even with the extension .scpt

4. Error

MarioArizmendi_0-1634650875215.png

 

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 19, 2021 Oct 19, 2021

Copy link to clipboard

Copied

I think your text editor is expecting AppleScript syntax there (see the menu top left).

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 19, 2021 Oct 19, 2021

Copy link to clipboard

Copied

script editor, applescript are not for this script.

 

use a text editor and save the jsx script as Plain Text, not Rich Text.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 19, 2021 Oct 19, 2021

Copy link to clipboard

Copied

LATEST

Carlos

That worked fine, thanks

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines