Move all items from carton to a layer in InDesign (AS)

Just learning how to move all the guides to a layer, now I would like to just the products box to a layer. My goal is to separate the elements of page elements pastnoard on separate layers. Favorite AppleScript.

It seems like it should be very simple, but I can't work as a (ID CS5, Mac OS x 10.6.8).

If I select a point on the editing table and ask its parent, the result page is 'nothing. ' But asking you for each page element whose parent page has nothing (or 'nothing' or 'no' or 'nada' or "") returns no result.

Can I ask for each item in the page which the parent page ID is the identification number of my single page, and you will find the item on this page (except the items in cardboard), but if I ask for each page element whose ID is NOT the ID of my page, it does not find the two points that I put on the editing table.

Substances, can you get it actually works in JS?

The only thing I've found so far and who works at all in AppleScript is a solution very kludgy:

Tell application "Adobe InDesign CS5"

Tell document 1

each element of the page including the id of the parent page is greater than 1 the value myPageItems

the value myEveryItem for each page element

Repeat with myItem in myEveryItem

If is not then myItem in myPageItems

myItem move to the layer "layer of cardboard.

end if

end repeat

tell the end

tell the end

That could take some time to run on a document with a lot of page elements. It is good to be a better way...!

Tags: InDesign

Similar Questions

  • Move all of the guides to a layer in InDesign (AS)

    I need to select all the guides in a 20 page document and move them to a layer. The shortcut is easy enough, but when I can make a page at the same time, I'm wasting the precious time. I could really use a script. Any input?

    MAC OSX 10.5.8, ID CS5 to THE choice.

    Gidday KS_Coastal

    Try this, paste this into the script editor, enregistrer to save as a text-file file, place it in your scripts Panel folder in indesign, you can run it then all of your work. (tested with cs5.5 10.6.8 OSX) (should work under the cs5)

    Tell application "Adobe InDesign CS5.5"

    If (County documents) > 0 then

    My MoveGuidesToOneLayer()

    on the other

    display the dialog box "no documents are open."

    end if

    tell the end

    on MoveGuidesToOneLayer()

    Tell application "Adobe InDesign CS5.5"

    myDoc defined for the active document

    myLayerName value "Guides".

    say myDoc

    Try

    the value myLayer to myDoc myLayerName layer

    in case of error

    the value myLayer to make the layer with properties {name: myLayerName}

    try to end

    the value of the element of each guide to myLayer layer

    tell the end

    tell the end

    KeV

  • How to move all mailboxes to the new text layer?

    Hello

    So, we work with a book that will be printed in both languages. The color plates will be the same in both, with just the black plate text change. We should have implemented in a single document with color as the base layer and the two languages as two separate layers over the top, but we do not have. So now we have the design and to move all the items of text on a new layer. I do not know this should be easy enough for anyone who knows how the script, but I don't.

    Anyone know of any scripts for it? Any other ideas?

    I use ID CS3 on Mac.

    Any help would be appreciated.

    Yes, but it should work...

    var newLayer = app.activeDocument.layers.add ();

    TFS var =

    App

    .activeDocument

    .spreads.everyItem ().textFrames.everyItem () .getElements ();

    While (var tf = {tfs.pop ())}

    TF. Move (newLayer);

    }

    Substances

  • BlackBerry Smartphones move all Contacts from the SIM?

    I'm changing to a 9700 for a 9790. I have a ton of contacts in the internal memory of the old phone and need to move all the way to the SIM card so I can pass the info on the new phone. Is there a way to copy all the contacts at once on the SIM card? Otherwise, I'll spend a week moving one by one.

    Hi jgazolm

    Welcome to the BlackBerry Support Community Forums

    Not on our smartphone BlackBerry you can not copy all Contacts from a SIM card at the same time, if you want to copy you make one because the BlackBerry address book is much more robust it will be a different arrangement with a resource person and several areas of information (phone cell phone, work phone, home phone, e-mail address, etc.) while the SIM card SIM card allows only one entry per phone number.

    KB04205 : copy a Contact to your address book to the SIM phone.

     

    You go from 9700 to 9790 option switch device Wizard will use BlackBerry Desktop Software it will transfer all your data from your old phone to the new.

    KB23677 : How do I switch using BlackBerry Desktop Software devices.

     

     

    Prince

    ____________________________________________________________________________

    Click 'Like' If you want to thank someone.

    If problem resolves mark message (s) as a 'Solution', so that others can use.

     

  • How can I access Photoshop elements 9 organizer of iMac Apple Dock & move all photos from iPhoto

    I have been using Photoshop Elements 9 to change my digital photos from iPhoto.  I found using both these confusing applications and decided to only use Photoshop Elements 9 to edit and organize my photos.  Right now I can only access the editor of Photoshop Elements 9 of my iMac Apple Dock.  How can I access all the features of Photoshop Elements 9 of my iMac Apple Dock?  Should what steps I follow to move all of them now organized in iPhoto in the Photoshop elements 9 multimedia?

    The next time that you start the Organizer, go in the Dock, click on more and hold its icon there and go to options more > keep in dock.

    To copy your photos from iphoto, go to file > import from iphoto. This will duplicate your photos, however.

  • move all the layers into a single layer

    Hello

    I am new to the script and I need to make a script that the passage of all the layers into one layer (in Illustrator I press CTRL + A and then CTRL + G in layers and works) but I need in the script

    Please could someone help me?

    Thank you!

    I found the solution

    main() {} function

    If (app.documents.length == 0) {return ;}

    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

    var doc = app.activeDocument;

    var mast = doc.layers.add ();

    Mast.Name = "original";

    var group = mast.groupItems.add ();

    var pageIt = mast.pageItems.add ();

    While (doc.layers.length > 1)

    {

    While (doc.layers [doc.layers.length - 1].pageItems.length)

    doc. Layers [doc.layers.Length - 1] .pageItems [doc.layers [doc.layers.length - 1].pageItems.length - 1] .move (grup, ElementPlacement.PLACEATBEGINNING);

    doc. Layers [doc.layers.Length - 1] .remove ();

    }

    }

  • Move all messages from the ISP server on winXP

    I need to spend all my mail from my yahoo address (* address email is removed from the privacy *) to another fast program. My husband settled and trying to remove me from the program. I don't want to lose all my mail. Please help anyone?

    Yahoo is not a "program", this is a server.  If you want to moveservers - you get a new account first of all to a new server.

    Does your husband know your password - you can change it now?

    Sign in to your Yahoo email account from any Internet browser in the world of work and to change your password.

  • How can I move all programs from Windows Vista to Windows 7?

    I want to spend that install all applications and information from a windows vista to a clean place, on the same hard drive, windows 7. What is the best way to do it? can I make a back up of vista on a cd and then install windows 7 and then replace all?

    You will need to reinstall all of them using the original installation disc.  You can not just copy.

  • See all items from a user in Oracle

    Hello
    I can see all objects that match a user in a x pattern in sqlplus.

    Thank you

    Luis_vkacito wrote:
    Hello
    I can see all objects that match a user in a x pattern in sqlplus.

    Thank you

    Hello

    You can use

    SQL > select * from dba_objects where owner = 'X '.

    See you soon

  • View all items from web application in random order

    I see that it is possible to display an element of web app randomly, what about all the web app items in a random order?

    Your loading a lot of content but this way you don't want to and can be indexed by the search engines when you won't. It will appear as consistent all the elements and not random content fresh.

    While this is not ideal for search engines, you can have a page and all web applications using tag counter in the elements for each you can do which cache of search engines. You are running then through these with tell jQuery to choose a random set and Ajax in to where you want.

  • [JS] [CS4] Remove all items from the hidden page?

    Hello

    I am trying to remove all the hidden page items regardless of the sublayer how they are buried in. Is this possible? I wrote here a snippet that seems to work only in part. It removes all hidden page items unless two hidden objects exist right after the other in the stacking order. Why this might be happening? Any suggestions?

    for (i=0; i<doc.pageItems.length; i++){
              if (doc.pageItems[i].hidden == true){
                   doc.pageItems[i].remove();
                   }
         }
    

    I'm new to scripting so any help is greatly appreciated.

    Thank you!

    Lindsay

    What happens if you go back to the front? I think that something like that

    #target illustrator
    
    var idoc = app.activeDocument;
    
    for (i = idoc.pageItems.length-1; i>=0; i--){
              if (idoc.pageItems[i].hidden == true){
                   idoc.pageItems[i].remove();
                   }
         }
    

    Worked on a trial

  • Script to move all items on each page

    I'm quite new to scripting, but I'm trying to write a script to select all elements on each page and shift the X values and are specified. The script works but only seems to move 1 point on each page, I know it's probably something really simple and I was wondering if anyone here could point me in the right direction?

    This causes the:

    for (a = myPages-1; a>=0;
    a--)
    {
    app.activeDocument.pages[a].pageItems.everyItem().select();
    app.selection[0].move (null, positions)
    }
    

    You are 'select' objects but only moving one...

    In normal circumstances, you should use 'select' in a script - you can 'target' any object immediately. And even if you did have something selected, all objects will move again! Change for this, I have not tried, but it should make it work:

    for (a=myPages-1; a>=0; a--)
    {
      app.activeDocument.pages[a].pageItems.everyItem().move (null, positions);
    }
    
  • Move all files from Adobe to a disk to another drive?

    Hello

    I do a lot of work in Illustrator, Indesign, and Photoshop. So although my main C drive has become too full and I would like to transfer my pictures folder in its entirety on my secondary drive of D (much more capacity).

    The problem is that if I had to do, all links in all the files would be broken because Adobe is looking for C /... instead of D /...

    Is it possible to Indesign, Illustrator and Photoshop files search in the D drive instead of C drive? All other parts of the situation would be the same, the only difference would be the drive letter.

    Any help would be greatly appreciated.

    P.s. her conditioning each file is not an option because A I have thousands of files and B. Some of my files have so many related images, they must be placed in a hierarchy of folders specific to reference later and destroyed packaging all folder hierarchies and merges all the images in a single folder.

    for each program, google: migrate catalog.

  • Remove all items from a Collection of table

    Small question. What is the code to remove all the elements of a collection of table?

    I have a collection of table {myTilelistAC}, which is referred to as the data provider for my tilelist and I have a button that when clicked will be empty this collection of table, so that the tilelist component will be mainly empty too.

    ArrayCollection.removeAll ();

  • How to move some items from my profile to local storage__

    When I did the update of windows, it's the comments I receive:

    You must restart your computer to complete the installation of a program or updates. You cannot see or get other updates on the site until what you restart.

    http://www.update.Microsoft.com/microsoftupdate/v6/troubleshoot.aspx?Err=0x8DDD0007&ln=en

    I even added memory for

    E4400 @ 2.00GHZ

    2.00 GHz, 3.00 GB RAM

    The tech told me that I have 2 GB + 1 GB + 1 GB

    so, what's the problem?

    Restart your pc

    Some updates must be installed separately.

    Some updates must be installed to a stop and not restart, you can tell by going to start, stop, and in the box that opens there will be a small icon of type shield on the stop button, if you have updates to install.

    your message does not say anything on the memory, just need to restart. :)

Maybe you are looking for