Script to unlock all layers

Hi there,
I'm a little useless when it comes to scripting but I need a self-contained script that simply unlocks all the layers in a current document.
I'm using a script that batch exports a folder to RTF (batch_convert.jsxbin) but it's having a few problems with locked layers. Luckily, it allows you to run a script on each document it opens before it exports. If I had a script that would simply unlock all the layers first I reckon it could do the job nicely.
Thanks,
Dan

I didn't take a look at your posted link but if it is an exported binary then you may be out of look… Check and contact the original author…
Edit. OK, I think I see your direction now… Shut up mark u is still a muppet… sorry

Similar Messages

  • Unlock all layers

    Hi everybody.
    i recieved a illustrator file with thousands of layers/sublayers, one of them is locked, and illustrator don't let me replace a font because says that "layer is locked".
    there is a command to unlock all layers?
    or to force a replace font without unlocking?
    Thanks

    Try locking one of your top layers. It will be available then as here
    When I had no top layers locked it looked like yours.

  • Script to select all layers based on condition?

    Do anyone have a script to select all layers based on either name or color label? Possibly using search but not necessarily?

    If you search this forum you will find script that will process all layers in a document.  You can modify one if them to skip the layers you do not want to process do nothing to the. The process uses recursion to process layers within layer groups,.

  • Illustrator Actions (Unlock All Layers) not persistent

    Hi all
    I hope this is the right section to post this.
    But like the title says I have problems with Actions and the Unlock All Layers. As soon we shut down Illustrator and start it up again this part is gone. Reloading the saved Action will solve the problem, as long you don't restart Illustrator again.
    This is what the action looks like when it is loaded:
    This it like it is when Illustrator has restarted:
    This has been tested on different operating systems and in CS4 and CS5.
    Any idea how to solve this?

    OK here it goes:
    -Unlock All Layers
    -Unlock All
    -Deselect All
    -Show All
    -Clear
    -Select Stray Points
    -Clear
    -Select All
    -Copy
    -New
    -Paste
    -Clear Guides
    -Symbols > Selesct all Unused
    -Symbols > Delete Symbol
    -Graphic Style > Selesct all Unused
    -Graphic Style > Delete Style
    -Brush > Selesct all Unused
    -Brush > Delete Brush
    -Swatches > Selesct all Unused
    -Swatches > Delete Swatch
    -Clean up
    -Delete empty Layers

  • Unlock paths w/out unlocking all layers?

    Hello!  I routinely lock individual paths in a layer in order to monkey around w/their neighbors (which are in the same layer), but then when I need to unlock them, I just want those two paths to unlock, not every single layer that is currently locked.  How can I do this without splitting them into different layers?  Thank you!

    huh? i dont really inderstand your question but i'll give it a shot haha.
    you want to lock and unlock individual abjects within a layer right? if you click the arrow of the layer it will expand to show the objects, which you can then scroll to your desired object(s) and lock them, then just unlock them when you are done. you dont have to unlock the whole layer.
    also, on a related note, in cs4 and cs5 you can double click an object and edit it by itself even if it is grouped with something else.

  • Cannot lock other paths/unlock all paths in symbols?

    Why is this?

    This is for CS5. However, you can lock layers in a Symbol. That is not the question. The question pertains to locking all other layers/unlock all layers.
    In symbol edit
    ing mode:
    Lock other layers in the layer window menu does not work, it is greyed out.
    Object>Lock>Other layers is also greyed out
    Why is this? Combined with the fact there doesn't appear to be a way to select all objects on a layer, this makes reasonably editing symbols almost impossible.

  • How can I find all locked layers (visible or not) and then Unlock All at once?

    OK, for anyone who cares here's the scenario.
    I was on a tight deadline. I got a massively layered, -- nested folders everything --  .psd
    I'm using Photoshop CS 5.5
    I only needed the visible layers.  So, I go to "Delete Hidden Layers" right? Ooops it was grayed out, I could not use it -- Ahhh that was because of the locked layers...
    No problem. Ugh wait.
    Then I realized -- in the complicated layer structure I had to go through every single folder, open it, look for a locked layer and unlock it (nested folders inside of nested folders etc.). If the layer was not visible and it was locked, I had to first turn it to visible, then unlock it, and then turn it off again.
    Aaaarrggghhh I was on a deadline, and I just didn't have time -- but I had to do it anyway.
    This was a painful experience... I'm telling designers from now on NEVER SEND ME A PSD WITH LOCKED LAYERS AGAIN
    It would have been so much easier if I could just search for "locked layers", and "unlock all."
    Does anyone know of a solution? Probably something I should have known years ago, or maybe a feature request?
    Thanks!!!
    :B

    This feature is now available in Photoshop CS6. Layers panel has a layer filter option that simplifies the workflow and is designers dream come true! Please see screenshots below:

  • Activate template (unlocked text layers editable in Premiere Pro) with a script?

    Hello,
    How to activate in the composition settings the template option (unlocked text layers éditable in Première Pro) with à script?
    Thanks for your help.
    Regards.

    Try resetting your preferences.
    Easiest way I know is just delete the entire Preferences folder. Make sure PP and AME are both closed.
    If you have workspaces you want to save - not have to rebuild - then drag the entire Prefs folder out of Program Files.
    When you restart PP it will build a new prefs folder. You can then - one by one - import the saved workspaces from your old Prefs folder (and whatever else you want).

  • How to 'Select All Layers' when background is locked?

    I've just tried to Select > All Layers and was very surprised when the Background, a locked layer, was not included in the selection. Is it possible to select all layers, included the background?

    This could be a tricky one and needs some explanation. I have about 1600 images to process. I would prefer to do so from within InDesign, to which the images are linked. I want to apply Smart Filters to all the images. That's only a part of the story, but it will do for the moment.
    Method 1 and Why it Won't Work
    I could apply a Smart Filter by choosing a certain image in InDesign; selecting Edit Original and the image opens in PS. Then I was hoping to use Select All Layers and apply a Smart Filter. But... Select All Layers doesn't select all layers, and you can't apply a Smart Filter unless all layers are selected.
    Method 2 and Why it Won't Work
    I could open the images within PS by using Open as Smart Object, which DOES select all the layers and allows you to apply a Smart Filter. But for a very good reason (I can explain the reason, but it would take a few more paragraphs), I want to open the images from within InDesign. So, method 2 is unsuitable.
    Method 3 and Why it Won't Work
    I could batch all the images using an Action to unlock the Background. But, not all my 1600 images have a background. Some have ordinary unlocked layers, some have text layers. I could set up an Action to unlock Background layers (double-click, followed by a Return to name the layer "layer 0"), but if the Action came across a text layer on the bottom -- big problem. For a text layer, double-click followed by a Return  does nothing. I'd have one locked-up Action.
    Method 4 - A script working from within InDesign could open the images as Smart Objects -- but I'm not a script man.
    Seems a bit silly that Select All Layers doesn't allow me to select all layers.

  • PS3 script to batch rename layers

    Sometimes, I make copies of layers (for example: copy little diamonds to align into a shape of the letter M). Each time I "alt+drag" the content in that layer (to make a copy of it), PS makes a copy and then appends the name of the layer to something like "diamond copy 3". After making a ton of copies (and because I'm anal about having actual names for each layer), I want each layer to read "diamond". Instead of manually renaming all these layers, is there a way to highlight the affected layers and choose to rename all layers according to what you want?

    Try this. Just select the layers you want 'copy' removed from and run this script.
    if( app.documents.length > 0 ){
    app.activeDocument.suspendHistory('Rename selected layers','removeCopyFromSelectedLayersNames()');
    function removeCopyFromLayerName(){
         if( getSelectedLayersIdx().length > 1 ){
              var selectedLayers = getSelectedLayersIdx();
              makeActiveByIndex( selectedLayers[0], false );
       var startLoop = Number( !hasBackground() );
       var endLoop = getNumberOfLayer() + 1;
       for( var l = startLoop;l < endLoop; l++){
            while( !isValidActiveLayer( l ) ) {
                l++;
              var oldName =  getLayerNameByIndex( l );
              var newName = oldName.replace(/\scopy\s?\d*$/i,'');
              putLayerNameByIndex( l, newName )
         if( selectedLayers != undefined ) makeActiveByIndex( selectedLayers, false );
    function removeCopyFromSelectedLayersNames(){
         var selectedLayers = getSelectedLayersIdx();
         for( var l = 0;l < selectedLayers.length; l++){
              var oldName =  getLayerNameByIndex( selectedLayers[ l ] );
              var newName = oldName.replace(/\scopy.*$/i,'');
              makeActiveByIndex( selectedLayers[ l ], false );
              putLayerNameByIndex( selectedLayers[ l ], newName )
         makeActiveByIndex( selectedLayers, false );
    function getNumberOfLayer(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    var desc = executeActionGet(ref);
    var numberOfLayer = desc.getInteger(charIDToTypeID('NmbL'));
    return numberOfLayer;
    function getLayerNameByIndex( idx ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID('Prpr') , charIDToTypeID( 'Nm  ' ));
        ref.putIndex( charIDToTypeID( 'Lyr ' ), idx );
        return executeActionGet(ref).getString(charIDToTypeID( 'Nm  ' ));;
    function putLayerNameByIndex( idx, name ) {
         if( idx == 0 ) return;
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), idx );
        desc.putReference( charIDToTypeID('null'), ref );
            var nameDesc = new ActionDescriptor();
            nameDesc.putString( charIDToTypeID('Nm  '), name );
        desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), nameDesc );
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    function getActiveLayerIndex() {
         var ref = new ActionReference();
         ref.putProperty( 1349677170 , 1232366921 );
         ref.putEnumerated( 1283027488, 1332896878, 1416783732 );
         var res = executeActionGet(ref).getInteger( 1232366921 )
                                                           - Number( hasBackground() );
         return res;  
    function isValidActiveLayer( idx ) {
         var propName = stringIDToTypeID( 'layerSection' );
         var ref = new ActionReference();
         ref.putProperty( 1349677170 , propName);
         ref.putIndex( 1283027488, idx );
         var desc =  executeActionGet( ref );
         var type = desc.getEnumerationValue( propName );
         var res = typeIDToStringID( type );
         return res == 'layerSectionEnd' ? false:true;
    function hasBackground(){
        var res = undefined;
        try{
            var ref = new ActionReference();
            ref.putProperty( 1349677170 , 1315774496);
            ref.putIndex( 1283027488, 0 );
            executeActionGet(ref).getString(1315774496 );;
            res = true;
        }catch(e){ res = false}
        return res;
    function getSelectedLayersIdx(){
         var selectedLayers = new Array;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
         var desc = executeActionGet(ref);
         if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
              desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                   selectedLayers.push(  desc.getReference( i ).getIndex());
         }else{
              var ref = new ActionReference();
              ref.putProperty( charIDToTypeID('Prpr') , charIDToTypeID( 'ItmI' ));
              ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( 'ItmI' )));
         return selectedLayers;
    function makeActiveByIndex( idx, visible ){
         if( idx.constructor != Array ) idx = [ idx ];
         for( var i = 0; i < idx.length; i++ ){
              var desc = new ActionDescriptor();
              var ref = new ActionReference();
              ref.putIndex(charIDToTypeID( 'Lyr ' ), idx[i])
              desc.putReference( charIDToTypeID( 'null' ), ref );
              if( i > 0 ) {
                   var idselectionModifier = stringIDToTypeID( 'selectionModifier' );
                   var idselectionModifierType = stringIDToTypeID( 'selectionModifierType' );
                   var idaddToSelection = stringIDToTypeID( 'addToSelection' );
                   desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
              desc.putBoolean( charIDToTypeID( 'MkVs' ), visible );
              executeAction( charIDToTypeID( 'slct' ), desc, DialogModes.NO );

  • How to Unlock all folders and Files in One Main Folder

    How do i unlock all files and folders in one main folder? This way I wouldn't have to do it over 1,000 times to fix my folders I imported from my external drive.

    Open the Script Editor in the /Applications/AppleScript/ folder and enter the following:
    tell application "Finder"
    set locked of every item of entire contents of (selection as alias) to false
    end tell
    Select the main folder in the Finder and run the script.
    (39015)

  • Illustrator CS3 - Export all layers to Individual jpgs

    Hi everyone
    Is there a way to Export all layers (within Illustrator) to Individual jpgs/png/emf?
    e.g.
    Say I have 50 layers and I want each layer to be a different .jpg file, I don't want to have to export each layer one at a time.
    I know you can do this in Photoshop CS3
    Is there is a script for this?
    Thanks

    As for .jpg and .png, you can do that by using the Save for Web command, assuming you are talking about main layers.
    Other formats require scripting and I believe there are a couple of sample scripts in the Adobe Studio Exchange.

  • Illustrator script to select multiple layers

    I have about 74 layers in illustrator and i want to run a script to select combination of layers at a time.
    For e.g. I want 5 layers to be selected and save them as one .jpg. Then say i need to select other 3 layers to save it as a seperate .jpg file. If i do it manually it comes upto 300,000 images.
    I can create a csv file with all layers to be selected presented in a row. I need help with the command to select 4 or more layers at a time, say if i have layer1, layer2, layer3, layer4 then a command to select those 4 layers and save them as a .jpg file.
    Any help will be greatly appreciated.
    Thanks
    H Patel
    CEO
    Data Entry India

    Create a csv or .text file ( i used "test.txt"  and place it at any location say C:\\)
    Enter the layer names to be exported in each row separated by ";"  like
    Layer 1;Layer 2
    Layer 4;Layer 5;Layer 7      // you can type in the names of as many layers you wanted to export in a single jpeg
    Open your main .Ai file in Illustrator and run the following script
    var count;
    count =1;
    var f = new File ("C:\\test.txt");
    f.open("r");
    while(!f.eof)
    c=f.readln();
    var arr = c.split(";");
    var len= arr.length;
    for(i=0;i<len;i++)
       lay= app.activeDocument.layers.getByName(arr[i]);
       lay.hasSelectedArtwork=true;
    app.copy();
    app.documents.add();   
    app.paste();
       var exportOptions = new ExportOptionsJPEG();
       var type = ExportType.JPEG
       var fileSpec = new File("c:\\"+count+".jpg");
        app.activeDocument.exportFile( fileSpec, type, exportOptions );
    app.activeDocument.close();
    for(i=0;i<len;i++)
        app.activeDocument.layers.getByName(arr[i]).hasSelectedArtwork=false;
    count ++;
    What this script is doing is
    it is reading a line from the .txt file (c:\\test.txt in this case)  and pushing the layers to be exported in an array
    then selecting the objects on the layers to be exported
    copying the selected contents
    pasting the contents on the new doc
    exporting as jpeg
    closing the doc
    deselecting the selected objects
    Hope this will solve your problem ...

  • How to turn on/off all layers in one go?

    How to turn on/off all layers in one go?
    I wanted to turn on and off all the layers in one go, is that possible?
    Thank you for the help,
    Best
    Jamal

    Hi,
    According to your description, I would like to share the link with you:
    Airplane Mode On or Off Shortcuts - Create in Windows 8
    http://www.eightforums.com/tutorials/24541-airplane-mode-off-shortcuts-create-windows-8-a.html
    If you want to the detail of the script, I suggest to post the question on Script Center forum for further help.
    Script Center forum:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Regards,
    Kelvin_Hsu
    TechNet Community Support

  • Script to erase all meta data?

    I'm looking for a script that will erase all meta data from an image that I can put in the event manager to run whenever I save. 
    I work with renderings, not photos, and some of my software inserts a lot of meta data that is interfering with other people in the pipeline.
    Is this possible through a PS script?
    -Brodie

    Not really as some schemas are read only.
    This code will remove all that can be removed...
    if (ExternalObject.AdobeXMPScript == undefined)  ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    xmp = app.activeDocument.xmpMetadata.rawData;
    xmpObject = new XMPMeta(xmp);
    XMPUtils.removeProperties(xmpObject, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
    app.activeDocument.xmpMetadata.rawData = xmpObject.serialize();
    If you wanted to remove all data, you would have to export as Save for Web making sure no metadata is selected; or create a new document by selecting all layers and duplicate them to a new document. Do not just duplicate the document as this will retain the metadata.

Maybe you are looking for

  • SFTP listening channel is not picking the file from remote location

    Hi, We are facing an issue in B2B 11g while connecting to the remote trading partner through SFTP. It is not picking file from root as trading partner has given the file location as ' . ' root only. They have provided us one certificate file (.dat fi

  • Stored Procedure issue in receiver JDBC synchronous scenario

    Dear Experts, Below is the description of the Stored Procedure for my requirement which has 1 input and 7 output. CREATE OR REPLACE PROCEDURE emp_det_proc     p_emp_id IN NUMBER,     cur_det OUT sys_refCURSOR aS BEGIN     OPEN cur_det FOR     SELECT

  • In general how is T series performance for data warehousing databases ~1 TB

    Hi, I am planning to use a Sun T3-2 for a data warehouse app. Oracle 11g around a 1 TB worth of data and batch jobs and ~ 200 concurrent users. We are using HP UX Superdome server now ( node partition of 8 physical CPU's 750 Mhz ). I know that the T

  • Passing values to parameters in Documents using se61..

    Hi Experts/Gurus, Can we define parameters in SE61 under type "Document  class: General Text" for a document? If so can any one please tell the steps? Regards, Yugesh Edited by: Yugesh Reddy on Nov 6, 2009 8:39 AM

  • Transaction STWB_1 and Test catalog for IS OIL

    Cannot find Test catalogs TK IS-OIL* from transaction STWB_1 as mentioned in document Appl_Test_doc_600_1.pdf attached to SAP Note 890458 I tried to do the following from Appl_Test_doc_600_1.pdf: Call transaction STWB_1 or from the SAP menu, choose: