5 Replies Latest reply on Mar 14, 2013 4:57 PM by DuanesSearchForKnowledge

    unlocking locked text on an unlocked layer

    DuanesSearchForKnowledge Level 1

      hello,

       

      When running my script to unlock all layers, so I can select all textFrames and copy them to a new layer, I run into a problem with text that has been locked individually. The script unlocks layers that are lock but it does not unlock items that have been locked individually on those layers. Is there a way to unlock these items?

       

      var layerCount = activeDocument.layers;

      for (  j = layerCount.length - 1; j >= 0; j-- )

          {

          lockedLayers = activeDocument.layers[j];

           

              if (lockedLayers.locked == true && lockedLayers.visible == true)

              {

              lockedLayers.locked = false;

              }

          }

       

      Thanks,

      Duane