Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Swatch name change script #14333245
    Alican Ozturk
    Participant

    var myDoc = app.activeDocument;
    var mySwatches = myDoc.colors;
    for (var s = mySwatches.length-1; s >= 0; s–) {
    var mySwatch = myDoc.swatches[s];
    var name = mySwatch.name;
    if (name != “”){
    try {
    var myColorValueArray = mySwatch.colorValue;
    mySwatch.name = “C=”+Math.round(myColorValueArray[0])+” M=”+Math.round(myColorValueArray[1])+” Y=”+Math.round(myColorValueArray[2])+” K=”+Math.round(myColorValueArray[3]);
    }
    catch(myerror) {
    }
    }
    }

    Alican Ozturk
    Participant

    Obi-wan Kenobi

    you are unbelievable

    Endless thanks :)))

    Alican Ozturk
    Participant

    Thank you very much for your advice Mr Peter Kahrel,
    but I think I misrepresented the problem
    I don’t want to delete anchored objects
    I want to save anchored objects when replacing :)

Viewing 3 posts - 1 through 3 (of 3 total)