Move all the items assigned an object Style to a specific layer?

Hi all

I just posted this in the regular InDesign forum but thought you Scripting Guys can have some smart solutions too:

I'm working on a long document in InDesign (think the or not!) in which I have a lot of shots of models and images of the still life as it comes to women's fashion catalog. I only work in InDesign as all Photoshop work is ensured by our repro House, off site. At the present time the way in which I communicate all work comp that needs to be done is by placing a solid box of magenta or cyan on the image for maximum visibility. Of course, I have a style of object applied to these boxes, and I also like to keep a layer separate from the work immediately so that they can be off print times.

Often I forgot to move a box to the correct layer or sometimes just slows me to do. What I would ideally like to do is assign a layer to the style of the object, but seeing that this is not possible, I was wondering if there is another solution to get all these boxes one layer in one foul swoop and so save me a piece of time.

Thanks in advance!

Ah, sorry about that. The script makes the unfounded assumption that each object has a style of object applied to it.

Try this variant:

myDoc = app.documents [0];

myPIs = myDoc.pageItems.everyItem () .getElements ();

for (var j = myPIs.length - 1; j > = 0; j-) {}

try {}

If (. appliedObjectStyle.name myPIs [j] = 'Repro Note') {}

.itemLayer myPIs [j] = 'Repro Notes. "

}

} catch (e) {}; ignore the elements that have no style object

}

Dave

Tags: InDesign

Similar Questions

  • How can I move all the information of the computer without having to hit F1 or F2 at startup and go directly to the windows desktop in Windows XP

    How can I move all the information of the computer without having to hit F1 or F2 at startup and go directly to the windows desktop in Windows XP

    see if this article applies to your question:

    http://www.computerhope.com/issues/ch000301.htm

    a method to determine if the motherboard (cmos battery) battery should be replaced is to monitor the time in the windows desktop.

    If windows does not have the exact time, then the motherboard battery is low and must be replaced.

  • timing issue with cruzer blade SCDZ50 - 008G: cannot move all the files from the PC to the USB

    I accidentally deleted this file synchronization that was in the main folder of the USB. now I can't move all the files from the computer to the cruzer blade. I can't find where to download it online. Help, please!

    Too bad. found this

  • I had a hard drive crash and had to move all the data again. Now, I get an error saying that my Visa is not an authorized version. How can I find the product key to reactivate?

    Vista Product Code question

    I had a hard drive crash and had to move all the data again.  Now, I get an error saying that my Visa is not an authorized version.  How can I find the product key to reactivate?  I don't have the sticker on the back and the software I have does not have the code?  I bought this laptop DELL at Best Buy a little more than a year.

    Thank you.

    Hello

    This problem may occur if you make a significant hardware change. See the link provided below.

    Error message when you start Windows Vista: "your activation period has expired".

    http://support.Microsoft.com/kb/925616

    If the OS came preinstalled Dell you may need to contact Dell technical support for assistance.
    http://support.Dell.com/support/topics/global.aspx/support/win7_support/win7_portal?c=us&CS=04&l=en&s=BSD

  • get all the items you selected / checked

    Hello

    How all the items selected in a list that can be read?

    I need get all items (enabled) in the list and fill a vector...

    I get not all selected items, I only get the element on which is currently...

    Help, please

    Hello

    Exactly what I wanted to say, you need to implement this thing on yourself.

    I will try to explain the step hope it will help

    (1) create an array whose length is the same as listField.Intialize this table by 0 which means initially no element is selected.

    (2) each position in the table represent the listField position.

    (3) to each selection on listField change the corresponding value in table 1, for example if you select 2 point listField change the value in position 2 in table 1, if you select again the same option to new swtich tha value to 0.

    (4) Finally, when you want to extract the value of the selected item in the listfield, select all the table position with the value 1.

    I tried to explain the hope it will help you.

  • Move all the clips on the right side of the crt in cs5

    This shortcut used to be + shift + m, but that seems to no longer work on cs5.

    How to move all the clips to the right of the cathode ray tube?

    It's been moved to A key.

  • Can I move all the objects again selected layer without clicking hundreds of layer bars?

    I'm working on a complex illustrator file generated by GIS software. He gave me all kinds of groups of clip & road clip - what I really need, it's just to put all the same coloured polygons on the layer of a high level (unfortunately I can't draw all of my polygons in a group because illustrator doesn't pull these objects out of their existing clipping groups, and the card gets screwed completely upward if I release the clipping masks. With simple cards I have no problem Direct by selecting all of the polygons, I want, selecting their layers in the layers panel, then moving them to a new layer. This card is too complex, because there are hundreds of objects and hundreds of corresponding layers (they are not contiguous, or else I could simply click can be done with it).


    I used select > same > fill type to select all the polygons, I want that on a single layer, but I really hope that I don't have to select all the layers for each item one by one before I can move them to a new higher level layer. Does anyone know if there is a way to moving all the objects in a new layer selected without having to actually click all the layers in the Panel? Completely open to the alternative routes to my desired result!


    Thank you very much.

    Of course, after making the selection drag selection (to the right of the layer) icon on the desired layer. This will move any selected layer to the new layer.

  • Move all the objects in the model without destroying keyframe positions?

    I built an animation based on a number of position keyframes.  I want to take the entire animation and just back up a bit on the screen so that it is centered better.  However, I don't know how to do this without manually set each keyframe for the move.

    I wish I could nest the whole comp within a clip and then change the position of this element.  Is there a way to do this in AE?

    3 ideas come to mind:

    1. Add a null value and parent all layers to null (if the layers have relatives, and then just parents parents of course). You can delete the null value later and change your keyframes for the new offset.

    2 pre compose all the layers and then move it as a single layer.

    3. If it's a 3D scene, then you can simply move the camera since it controls all the layers.

  • I can get all the items/objects path within a plan of work?

    I have a document with several work plans. I want to go through each work plan and note the positions of all pathItems on the inside. It is important to note the elements of each work plan separately. Is there a way to do this?

    Yes, use the selectObjectsOnActiveArtboard() function, which will give you all the elements in a work plan without having to use math to calculate their relative position.

  • [CS3/4, JS] Apply the pen with an object style

    I was hoping to apply transparency via an object style effects using this:

    myObjectStyle.objectStyleContentEffectsCategorySettings.enableFeather = true;

    But "object does not support the property or method...". "etc.

    I would be very grateful if someone could point me in the right direction.

    Thanks in advance - Jeremy

    I had this same problem with the bevel and emboss effect and I just thought about it!

    Here is the code for my style of object and bevel/stamping out perfectly.  The key is the last line.  You must set the parameter applied to true so he could check the box and actually apply the effect.

    var myObjectStyle = myDocument.objectStyles.item ("FamilyOfFrame");
    try {}
    var myObjectStyle.name = MyName;
    }
    {} catch (MonErreur)
    myObjectStyle = myDocument.objectStyles.add({name:"FamilyOfFrame"});)
    }
    myObjectStyle.strokeWeight = 0;
    myObjectStyle.transparencySettings.bevelAndEmbossSettings.size =. 09;
    myObjectStyle.transparencySettings.bevelAndEmbossSettings.style = 2020618852;
    myObjectStyle.transparencySettings.bevelAndEmbossSettings.applied = true;

    But as I learn... not all effects include the "applied"... property

    Alex

  • Sets a field in the subform and move all the fields?

    I am building a form and thought all I had to do was to "tweak" the location of some numeric fields and date to complete it.  These fields are floating in the text fields.  But when I move a field, all other fields move too.  When I press on the arrow to the left of the key fields still float to the right.  What is going on?

    My form of hierarchy is as follows:

    Form

    -> header as date fields, buttons, digital.  (this part of the form is ok)

    -> WorkHistory subform (content = Flowed, flow direction = up and down)

    -> Table2 (Binding = table repeat for each data item)

    -> tableheader

    -> tabledetail

    -> tablefooter

    -> PaymentInfo subform (content = positioned)

    -> digital text with "floating" fields and date fields.  This is the section, I have questions.  I am positioning the fields to appear as if it is part of the text fields.  All the numberic, text, date and lines, but not text fields, are moved when a field is moved.

    I am using lifecycle Designer ES2, version 9.0

    Thank you

    Mike

    Hi Mike,.

    Strange behavior, I think that because you have a positioned subform (Subform1) nested under a subform sank (WorkHistory).

    I've changed that while they were at the same level and the fields are moving without the fields next to them.

    https://Acrobat.com/#d=aWShNFztAAc-XgcG6f5urg

    Good luck

    Bruce

  • Does anyone know how to filter all the items in an XMLListCollection?

    I have a tree with the following structure.
    <>node
    < Node1 >
    < node2 >
    < node3 / >
    < node4 / >
    < Noeud5 / >
    < / node2 >
    < / node1 >
    < / node >

    I need to be able to filter on node 3, 4 and 5 and then after the filter if they do not exist, get rid of the node 2 level and make then another function to check if the node levels 2 is here and if not filter... then filter node levels 1. Basically it is an ascendant of the filter. Flas 2.0 I would filter base level by removing the knots... then move to the next level and to check if they had children or not... If they did not then I would remove the... and then I would repeat the step for the last level.
    Does anyone know how to do this without having to remove the items from the collection... Basically, perform a filter rather than a deletion. I know that the filter function only returns the first element in the xml structure... which is annoying. If anyone can help me I would appreciate it of course?

    Thank you

    I guess that the filtering on a tree passes only in the lymph nodes of the root... It's very lame on part of Flex. Basically, I had to make my own functions to remove the nodes dynamically.
    Remember that this only works on a dynamic array element.
    Delete list ;

    To make this work, I have a main TreeCollection... and that I made a copy. Treecollection.Copy () and deletions of the struct stuff copied. After that the destructions were I made then assigned the copy to the MyTree.dataprovider = copy.

  • How to move all the already marked spam emails for spam folder?

    Some emails are marked alread wich spam (there is an icon burn above), but still in my main Inbox folder. How to move all folder of spam at a time?

    Have you tried to select e-mails, drag and drop on the trash?
    Try to create a filter to move messages marked as spam to Spam folder.

  • Cannot move all the files as windows explore crashes - it happens every time when you use an external hard drive (several readers have been tested and work on other machines)

    I need to move files on my laptop, but windows crashes Explorer everytime I try this. This also applies when you use an alternative program to explore. It didn't happen last week but regularly spent the last six months. It is now that I need to migrate these files (mainly the images, but also the music and office documents).

    The error in the Event Viewer log States the following: start the application failing application Explorer.EXE, version 6.0.6002.18005, time stamp 0x49e01da5, failed module unknown, version 0.0.0.0, time stamp 0x00000000, exception code 0xc0000005, offset 0x02db07e0, process id 0 x 1650 error, time 0x01ca547fd1de6851.

    Thank you

    Make sure that the device is compatible with Vista, the Vista Compatibility Center: http://www.microsoft.com/windows/compatibility/windows-vista/default.aspx.

    If you need to get pilots to leave the computer dealer or the manufacturer of the device (NOT of Microsoft Updates).  In fact, you must disable automatic updates in Windows Update driver as follows: http://www.addictivetips.com/windows-tips/how-to-disable-automatic-driver-installation-in-windows-vista/. Follow these steps: http://pcsupport.about.com/od/driverssupport/ht/driverdlmfgr.htm.  Once you have the drivers, you can install them via the Manager device as follows: http://www.vistax64.com/tutorials/193584-device-manager-install-driver.html.  You need to find the NAS device and the NICs in particular - but it would not hurt to look at all the when you're there.

    Go to start / Control Panel / Add Hardware and select the first option (recommended) to see if the system can detect the device.  If this does not work, choose the second and provide the information requested on the device.  You will be asked for drivers - have their practice.  Follow the prompts to install the device (NAS).  Make sure that it is plugged in and turned on when you do so, or he not be recognized.  It's the hard way of installing a hardware device, but your system obviously isn't automatically recognize it then do it manually. Here is a brief tutorial on how to do so: http://www.web-articles.info/e/a/title/Windows-Vista :-Running-the-Add-Hardware-Wizard /.

    I hope this helps.  Good luck! Lorien - a - MCSE/MCSA/network + / A +.

  • Find all the item in the list in QML

    I use ListView to display the list item. I'll put the data in the list using datamodel.

    At some point, I want to know what that any element is in the list. Is it possible to do this?

    for ex: list.getInput that returns all list items

    Welcome on the support forums.

    check the API of the datamodel you use, for example groupdatamodel
    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__groupdatamodel.html

    all methods marked as Q_INVOKABLE can be called from qml, for example first() and after() you can iterate through its members.

Maybe you are looking for

  • white screen with lines

    I came here because I believe that it is a combination of several mistakes, I don't know. When I start the computer in Standard Win2k3, it gives me a white screen with Vibrio black vertical lines across on the screen, with a few horizontal. After som

  • XP to Vista drivers

    Some programs cannot run on vista, a friend told me that I can download (dll) XP drivers in vista to make these programs work. How can I do?

  • Embed the video player in WebView - Fullscreen problems

    I'm at the point where I have to integrate a 3rd party html5 web player. I created a view of web pages containing the video player embedded in an iFrame. I have also the app resize the display orientation of the device-based Web. The problem is with

  • Does anyone has converted a 3600 in the fall?

    I'm not having much luck he is converted by the normal channels. It times outs on TFTP server when you press and hold the mode button (a 3500 works very well do the same thing). I try the way of the old school of archive download-sw, but it is not fa

  • Internet connection problem; A few days ago, my computer (Windows 7 OS) stopped connecting to the internet. DNS

    A few days ago, my computer (Windows 7 OS) stopped connecting to the internet. When I troubleshooted, it produces an error of "your computer seems to be configured correctly, but the device or resource (DNS server) does not. I Googled it and tried a