6 Replies Latest reply on Oct 27, 2009 1:06 PM by TᴀW

    Quicky: Test if style with given name already exists JS CS4

    TᴀW Adobe Community Professional & MVP

      Hi,

       

      Could someone please help me? I need my script to create a new character style only if a style with that name doesn't already exist. What would be the best way of checking for this?

       

      In plain(ish) English, I need something like:

       

      if app.activeDocument.characterStyles already contains a style named "ScriptItalics" etc. etc.

       

      Can I do this without actually looping through every item?

       

      Thank you,

      Ariel