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
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.
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) {}
.
Copy link to clipboard
Copied
record a second Action to take care of the document with Registro and use both as needed
Copy link to clipboard
Copied
Carlos
Sure, I can do that, but the point is to know why this happenned...
Copy link to clipboard
Copied
agree, it'll be good to know
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?
Copy link to clipboard
Copied
Sounds good...!
Carlos?
Copy link to clipboard
Copied
you can certainly Rename [Registration] swatch name Kurt
would that help Mario?
Copy link to clipboard
Copied
But how to do it?
I cant doble click on the swatch, nothing happens
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) {}
.
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
Copy link to clipboard
Copied
I think your text editor is expecting AppleScript syntax there (see the menu top left).
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.
Copy link to clipboard
Copied
Carlos
That worked fine, thanks