Skip navigation
Currently Being Moderated

Who's able to change color of this ?

Jun 14, 2010 8:36 AM

Hi all,


I'm unable to change color of each element of this Illustrator file (there are CS,CS3 or CS4 file.. choice it yours) by scripting (of course)


Who will be able to change it ?


Many thanks !!

  • Currently Being Moderated
    Jun 14, 2010 11:55 AM   in reply to artchrome

    Hi Chrome,


    you must change the appearance, no chance (?) (cs3).

    except you move it outside the group (with the appearance)

    so the group will be deleted.

    something like that(where ad is document):


    var obj= ad.groupItems[0](stroke=blue).compoundPathItems[0](stroke=no)
    var lay = ad.layers[0];


    but, how to know if there is a appearance, and

    how to get the color ?

    once more i know why i hate this appearance thing


    helps this? or is it not what you want to hear?


    Mark as:
  • Currently Being Moderated
    Jun 14, 2010 1:12 PM   in reply to chris gebab

    I have been stuck with this before now and as far as I see you have NO access via script to 'appearance' nor do they give you a bail out option where it can be detected and you close… This is very bad IMO… I see nothing new added to the CS5 Trial that deals with this either but I've only been playing for a day or two…

    Mark as:
  • Currently Being Moderated
    Jun 15, 2010 12:39 AM   in reply to artchrome

    Got it, I think.

    whats about that:


    a new Doc with the textframe you need (whitout appearance and magenta color) as template.

    duplicate the textframe and copie the .contents from your old file to it.

    move the Duplicate to the old file, remove the old textframe



    Mark as:
  • Currently Being Moderated
    Jun 15, 2010 2:02 AM   in reply to artchrome

    yes, good to know, for text also maybe:


    var = contents

    contents = " "

    save as ai10 & reopen

    contents = var 



    Mark as:
  • Currently Being Moderated
    Jun 15, 2010 4:31 AM   in reply to artchrome

    With AppleScript it would be possible to select all or each page item in turn and then check if the menubar/object/Expand Appearance is 'enabled' if any art has used 'appearance' then it should be true. I only ran some basic testing. Given that AppleScript could also expand it too running the menu item or an action. If you don't mind dealing with group items then you could run batch action to select all or text then expand appearance to groups?

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points