InDesign Applescript placed Layer Visibilty Override object

Hi, trying to programmatically control the visibility of the layer of objects placed (I or other ID files) in a multi-page Indesign document.  Have searched all over the dictionary, but can't seem to find a way to reference layers.

Anyone have an example of how to do this in Applescript?  (Please, not javascript, allows you to convert one day but for now I'm staying with ACE)

Thank you!

Sorry for my last answer, I missunderstood.

I hope this helps.

Have fun.

# Here you can list layernames visible pourdefinir

the value myLayerNameList to {'NomCouche 1', 'NomCouche 2'}

say application "Adobe InDesign CC.

the value theDocLinks to the active document links

Repeat with I in theDocLinks

the value theGraphicLayers to the name of graphic layers of graphical layer of a parent options I

Repeat with j from 1 to count theGraphicLayers

if point j of theGraphicLayers is in myLayerNameList then

options set visibility of the graphics layer graphic j of current of the parent layer I of true

on the other

options set visibility of the graphic layer j graphic layer current of a parent I have to fake

end if

end Repeat

     end Repeat

end say

Tags: InDesign

Similar Questions

  • "Assignment of a top layer of the object on the master" (master page numbers) I understand the layer must be up to show above images placed on the pages, but how can I do this?

    I have added page numbers to my master pages. They appear on the pages, but I have images on the individual pages which cover the numbers. I understand that I must assign a top layer of the object, but I don't understand how to do it. Please help me? Please explain a just clear as possible, I read the other replies but still do not understand. Wish it was as simple as select object, do a right-click, edit the layer!

    Thank you very much!

    1. open the layers panel (window > layers)

    2. in the control panel menu, choose new layer. In the dialog box, you can name the layer if you like Page numbers.

    3. on your main page, select the text block with the selection tool (black arrow tool) page numbers.

    4. If you now look at the layers panel, you will see a small square right of one of your layers (or 1 layer if you have not created any new layers). Drag instead of the layer of Page numbers. [Explanation: the square is a "proxy" for the selected objects.] [Drag to the other layer moves the objects on this layer.]

    Good luck!

  • Simple Indesign AppleScript Javascript conversion

    Hello

    I have used it as a simple Indesign AppleScript, but need to convert it into javascript and have no prior experience.  I read the document Adobe pdf on the scripts and it's great, it shows the differences between the 3 (as, js, vb), but I still have a problem to find how would that conver.  Anyone would be able to show me the converted result?

    AppleScript:

    Tell application "Adobe InDesign CS5.5"

    say to all documents
    whole visible layer ' Interactive - Web ' true
    whole visible layer ' Interactive - Print ' false
    tell the end
    tell the end

    JavaScript:

    myDocuments var = app.documents.everyItem (); something like that?

    It mask/poster of the visibility of the 2 specific layers for all open documents.  I pretty much need to hide/show specific 2 layers book ina and this should / can accomplish this.

    Thanks for any help!

    This should work:

    var documentsArray = app.documents.everyItem().getElements();
    for (var i = 0; i < documentsArray.length; i++) {
              var document = documentsArray[i];
              var layers = document.layers;
              layers.itemByName("Interactive - Web").visible = true;
              layers.itemByName("Interactive - Print").visible = false;
    }
    

    In addition, it might be possible to do without using 'getElements' that 'solves the object specifier", thus avoiding the loop 'for '. Something like this:

    app.documents.everyItem().layers.itemByName("Interactive - Web").visible = true;
    app.documents.everyItem().layers.itemByName("Interactive - Print").visible = false;
    
  • How to subtract a grunge texture of a layer with several objects?

    Hi all

    I've been struggling with this for hours. Would be very grateful for help.

    I'm trying to apply a vintage texture to some vector illustrations.

    In the screenshot, the work I created is in the layer of "work." I tried to simplify the work as much as possible by using the union, merge, expand, etc. I wanted to do a piece of work, but that seems so simple that I can get it.

    When I try to perform a subtraction on the layer 'work' with the layer of 'texture', basically everything disappears.

    I suspect that it does not work as expected because the layer of my work is always composed of several objects and not a unified object.

    Vintage texture superimposed on the work looks good, but I need this subtraction in vector because I intend to get it printed on a shirt in one color, so I can't get the holes filled with color.

    Any help would be greatly appreciated.

    Thank you!

    Ray

    Screenshot 2016-01-28 20.10.50.pngScreenshot 2016-01-28 20.16.20.png

    How can I activate art in a single compound path?

    First of all, to unite all paths with the first button in the Pathfinder palette. Then choose object > compound path > make (or press Command-8).

    But don't do it this way. Use an opacity mask.

    If I use the grunge texture as an opacity mask, do I still to transform the art into a single compound path first or I can do to a layer with several objects as if it were now?

    No, you have not; You can keep a complete editibility of your design. You need to just design group firstly, why the opacity mask applies to all this.

    Opacity masks are easier to use if you uncheck "Clip" after their creation. Then, all parts of the mask that is black will be transparent; each part that is white will be opaque, and the things which are shades of gray will be partially transparent. Just like in Photoshop. Right now, your grunge texture is white, so you would need to change to black after making your opacity mask.

  • Rename the layer, group, Javascript object

    Hey guys,.

    I am writing a script which renames a layer and the group within the layer, then an object in the layer (but is not part of the Group) and have it executed in a loop.

    This is what I have so far, change of group name does not work.

    #target Illustrator
    
    var doc = app.activeDocument;
    
    idLayers(doc)//IRename layers
    idGroups(doc)//Rename groups
    
    function idLayers(doc){
        for(i=0;doc.layers.length>i;i++){
            doc.layers[i].name= 'id:GTM_Group '+(i+1)
            }
        }
    
    function idGroups(doc){
        for(i=0;doc.groups.length>i;i++){
            doc.groups[i].name= 'id:GTM_Group '+(i+1)
            }
        }
    

    I got into anthing to rename the single object still since I can not even rename it group work. I suspect that the new group name section does not work because I'm either using the incorrect syntax or a command that is not valid. Any ideas?

    (Attention to groups hidden within the transparent traces or other groups because it will find and rename these groups as well.

    to avoid dealing with groups (or objects) within the groups, not loop through all elements in the document, reference your articles by layers

    #target Illustrator
    
    var doc = app.activeDocument;
    
    idLayers(doc); // Rename layers
    
    function idLayers(doc){
        for(i=0;doc.layers.length>i;i++){
            var currentLayer = doc.layers[i];
            currentLayer.name= 'id:GTM_Layer '+(i+1);
    
            idGroups(currentLayer); // Rename groups
            idPathItems(currentLayer); // path items
        }
    }
    
    function idGroups(layer){
        for(j=0;layer.groupItems.length>j;j++){
            layer.groupItems[j].name= 'id:GTM_Group '+(j+1)
        }
    }
    
    function idPathItems(layer){
        for(k=0;layer.pathItems.length>k;k++){
            layer.pathItems[k].name= 'id:GTM_Path '+(k+1)
        }
    }
    
  • InDesign Applescript: scale

    by the title it is with applescript, so I'm not sure if this is the right place, but I'll give it a shot.

    I've created a script that puts an image to the size of the documents and how to place a picture to insert the picture content

    I can't get the code to tell me what is the scale of the image?

    If I place and image and adapt it to the framework I'd a display dialog box which displays the vertical scale and horizontal scaling of images

    say application «Adobe InDesign CS3»

    set picture to Choose file default location (myAdtrack) prompt "Please select an image to be placed:" without invisible

    say rectangle 1 of the page 1 of 1 document

    place picture

    made picture give content of frame

    game hScale to (horizontal scale of picture)

    the value vbalance to (vertical scale of picture)

    ' show the dialog box Hscale & ""& vscale as string.

    end tell

    print active document with the print dialog box

    end say

    You must reference the placed not image file that you open, so it should work:

    say application «Adobe InDesign CS3»

    Set picture to Choose file default location (myAdtrack) invites "Please select an image to be placed:" without invisible

    say Rectangle 1 of the page 1 of document 1

    Place picture

    Picture adjustment given to the framework

    -image border

    set myimage of image 1

    game hScale to (scale horizontal of myimage)

    game vScale to (scale portrait of myimage)

    hScale Show dialog & "" & vScale string

    end say

    Print the document with print dialog box active

    end say

  • How to scale objects in one layer with each object in the same position

    I have a card with symbols on it, placed exactly where they should be. Is it possible to scale all the objects in a layer or group to be bigger, but not treat them as a layer that is stretched to scale proportionally? Basically, how could I do each larger symbol as if each is to be climbed from their centres?

    I tried to select a layer so that each object is selected, and then transforming them (specifying a percentage of the scale). As a result, the objects are enlarged, but it produces the same results as a normal click and drag the corner alignment point. Any ideas?

    Object--> transform each. Each object / group object must be properly structured and selected individually.

    Mylenium

  • CS6 Crash inDesign on placing a file on the indesign document, Crash report is attached.

    Hello

    InDesign CS 6 works very well for Mac mini in MacBookPro it always crash on placing a file on the InDesign Document.

    Crash report: http://pastebin.com/fUPiYd0c

    I tried:

    (1) to uninstall and reinstall CS 6

    (2) using different accounts including admin

    Troubleshooting 3) as following:

    ' a) Trash preferences (cmd-opt-shift-control keys for InDesign starting).

    Corrupt preferences (see above), or maybe the permissions on the folders that contain the preferences are such that InDesign cannot write correctly for them. (it sometimes happen).

    (b) by deleting sub folders: before you remove the sub directories/files, please make a backup (just to the trunk).  Exit design and try to delete the following files/directories (InDesign recreates them initially to the top):

    ~/Library/application support/Adobe/Adobe InDesign CS5.5

    InDesign ~/library/caches/Adobe

    ~/Library/Caches/com.Adobe.InDesign

    InDesign ~/Library/preferences/Adobe

    ~/Library/preferences/com.Adobe.InDesign.plist

    ~/Library/preferences/com.Adobe.InDesign.plist.lockfile

    ~/Library/saved application State/com.adobe.InDesign.savedState

    Note: The user library directory hides under MacPro/Lion. You can get there in the Finder by pressing Option and then go to the menu (other ways are too thin).

    Please let me know if I'm missing something.

    Thanks in advance,

    It hangs in the plugin simple catalog...

  • InDesign CC crashes when I move objects

    Hello

    Installed InDesign CC yesterday, have since restarted.

    Both x 64 and x 32 crash when I move objects, I can use quick boost with arrows and transformation to change the size.

    But do not use the mouse/keyboard SHIFT and change the size... or just move an object with a mouse.

    Sorry for the Swedish error message:

    Felet den I at med namn: InDesign.exe, version 9.0.0.244, tidsstampel 0x5176f4c7

    , felet den I modulen med namn: EXTEND the user interface. RPLN, version 9.0.0.244, tidsstampel 0x5176f933

    Undantagskod: 0xc0000005

    Felforskjutning: 0x0000000000018ab8

    Process ID: 0 x 2088

    Programmets starttid: 0x01ce6ce462f70a9b

    Sokvag program till: J:\Program\Adobe\Adobe InDesign CC (64 bit) \InDesign.exe

    Sokvag till modul: J:\Program\Adobe\Adobe InDesign CC (64 bit) \Required\SPREAD UI. RPLN

    Report ID: a6c178b1-d8d7-11e2-be9e-0026833a19fd

    Fullstandigt felaktigt paket pa namn:

    Program-ID virkninger till felaktigt package:

    I created a new documented and pasted all and re-recorded. That fixed my problem. If something must have gotten corrupted :|

  • InDesign: how to move a rectangle object with its content?

    Hello

    I'm developing an indesign extension with flash builder and extension builder cs 2.

    When I move a rectangle object that contains an image whose ownership geometricBounds image does not move and is no longer visible...

    How to move a rectangle with its content?

    Thank you

    Simon

    Use rectangle.move)

  • Tablet Wacom and Indesign CS5 - massive delay by dropping objects

    The system version: Mac OS X 10.6.5 (10 H 574)

    iMac11, 1, Intel Core i7 2.8 GHz, 8 GB of memory.


    Hello. Please help.

    I'm getting so frustrated that I have CS5 updrade and since then, my workflow of indesign is hampered. It is clumsy and infuriating.


    Basically when I'm finished objects in motion, copying objects (with the option key key) resizing of objects or even resizing windows... my usual actions to be finished (lifting of pen) or let go of the pen button do not work, there is a problem of not recognizing that I'm finished.

    Something has changed. Now, I feel a terrible delay which means that I am now moving items and resizing of components AFTER THE FACT, they seem to cling to my movements, after I finished.

    So I now things constantly landing in the wrong place, or resized to the dimensions completely wrong etc.

    Can someone help me with this please?

    I work for a charity and the only mac at home. So, I'd appreciate it really any Advisor.

    I can't afford to spend time troubleshooting, but seem to spend so much time things to UNDO and redo it became untenable.

    Thanks in advance.

    RA

    My friend has had exactly the same problem. He got solved by changing preferably Live delayed Drawing screen, its new preference ID CS5... Basic find in Preferences > Interface tab...

  • InDesign encounter error when locking of objects on the master page

    I have CS5 and love it. But after the moving objects on my master page between the layers (don't ask me why, just thought it might be a good idea) I can't lock without blocking InDesign objects (Ctrl-L). He meets a mistake and locks upward. I use the Task Manager to shut down and start over. You are not allowed to move objects on the master page between the layers? Do I need my mouse slapped?

    What is the error?

    Why do you need to lock the object? It should be locked on normal pages? I was wondering.

  • Conversion from Quarkxpress to Indesign AppleScript

    I'm new to applescript, and I'm working on a project to convert an AppleScript for Quark Xpress 6.0 in Indesign CS4...

    Here is the part of the code, I have a problem with now.  It works very well if the application is configured for quark but fails if the indesign value.

    tell document 1 application "QuarkXPress".

    activate

    -loop once for each page of the document

    Repeat with a 1 as "spreads"

    -set presentation options so that we can see what is happening

    spread to show a

    Set view suitable size spread in the window

    The error message says "a constant application or consideration cannot go after this property. and the part in bold in the above code is highlighted.

    Thank you

    Marshall

    It fails because the script commands are quite different in InDesign. Choose window-> library-> Adobe InDesign CS4 to consult a dictionary of commands that you can give to InDesign successfully. The zoom control is quite different:

    Tell application "Adobe InDesign CS4"

    window active given zoom fit spread

    end

  • What is the best way to manipulate the shape of a layer to smart object in Photoshop?

    I have a smart object in photoshop which is a rectangle, and I want to deform slightly so it looks it was filed on the ground (basically, I need to change the position of the corners to make it look in perspective).

    If I did that to an object in Illustrator I was going to just use the direct Selection tool and drag the anchor points in the corners of the rectangle. I know there is a direct selection tool in Photoshop, but my smart object doesn't seem to have all the anchor points on it to manipulate (v. new Photoshop user, sorry).

    I know you can use a mesh of string objects, but as this is just a simple rectangle I was hoping that it would be a less complicated way? That it's just the positioning of the corners that must fit.

    Thanks for the tips!

    Alanna

    Alanna salvation,

    You can use Edition > free transform or Ctry/Cmd-T, to reshap the smart object.

    Mike

  • CMYK - InDesign AppleScript workspace

    Here is my script:

    say application "Adobe InDesign CC 2014"

    get space color CMYK working

    end say

    I get the following error:

    error "Cannot run the CMYK color setting." number - 1728 of 'class CScm ' of 'class CSet.

    I don't see what is wrong.

    Any help would be appreciated

    Hi André,.

    Try this...

    tell application "Adobe InDesign CC 2014"
        set myWorkingSpaceCMYK to working space CMYK of color settings
    end tell
    

Maybe you are looking for

  • Smart browsing history

    There are known sites (google, yahoo, etc.) that "storm" history of navigation.Whenever I do a web search, or a search for post (g), a new entry is placed in the navigation history.Which may be good for somebody and bad for others like me.Proposal: A

  • Who needs for new adapter disp wddm drivers.

    First of all, I have an old HP pavilion a730n with a p4 3 GHz processor and 1.5 GB of ram worked with Xp, but I switched to Win7 Home Prem had find the compatible drivers. Finally got some help other people and things works better, but still had to s

  • Refusal of connection connection to 9146

    I'm trying to access the modules in an expansion chassis RIO 9146 using the customized by Veristand scanner device. I get an error 307853 that is denied by the login server. I removed my custom device and settings only on an empty project I is the op

  • R2 de Windows of 2012: Crypto Shell Extensions has stopped working on an attmpt to install the certificate root CA.

    On an attempt to install root CA certificate exported an AD MS area on a MS Windows Server standalone 2012 R2 Standard I get "Crypto Shell Extensions has stopped working" error message. The root CA certificate is valid for 25 years, I have no problem

  • TC - 605 Bios

    I'm a little confused on the Bios OK to use on a TC-605-UR-19 and TC-605-UR13. For all purposes, they are the same computer (same card mother and CPU even). Both came with preinstalled Windows 8.1 and I'm still using 8.1 on both. When I look at the d