• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

568

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

Community Expert , 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) {}

.

 

Votes

Translate

Translate
Adobe
Community Expert ,
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

Votes

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...

Votes

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
Community Expert ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

agree, it'll be good to know

Votes

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
Community Expert ,
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?

 

Votes

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?

Votes

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
Community Expert ,
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

Votes

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

 

Votes

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
Community Expert ,
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) {}

.

 

Votes

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

 

 

 

Votes

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
Community Expert ,
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).

Votes

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
Community Expert ,
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.

Votes

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

Votes

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