Copy selected items to a new layer

In order to create a multi-layered document for different pricing versions, I would like to be able to
• create the relevant layers (this works)
• duplicate the items I've selected to those layers
I can't see an easy way to identify the text frames/tables that contain prices, so we will have to select them page by page, but a script that then copied them and pasted in place on a new layer would save time.
So far everything I've tried has failed to work.
tell application "Adobe InDesign CC"
copy
paste in place
end tell
- this works, but if I try 'paste in place on layer "EURO PRICES" it won't. Neither can I identify what I've just pasted by 'set my_prices to paste in place'
I'd like to say 'duplicate selection to layer "EURO PRICES" but it doesn't like that either.
I'm going round in circles trying to do something that I know must be simple, but I can't see it!
Any help very gratefully received.
The bits that work so far are:
tell application "Adobe InDesign CC"
    tell document 1
        set name of layer 1 to "BASE LAYER"
        make new layer with properties {name:"BSP PRICES", layer color:red}
        make new layer with properties {name:"EURO PRICES", layer color:gold}
        make new layer with properties {name:"INT PRICES", layer color:green}
    end tell 
end tell

Hi,
HarrietSmith wrote:
I can't see an easy way to identify the text frames/tables that contain prices
Lets take a look..., show us a piece of...
Otherwise use duplicate() method instead of (copy...paste).
I am not familiar with applescript but something like:
duplicate to layer "EURO PRICES"
Jarek

Similar Messages

  • Javascript: copy an object to a new layer and tracing it

    Hello everybody:
    I'm using Illustrator CS5 on Mac. I need to copy an objecto to a new layer and tracing it. I'm trying to execute the script above. There is no problem with the copy to a new layer, but Illustrator returns the error "newItem.trace is not a function". Sorry because this is my first script and i'm lost.
    Thank you in advance.
        var myDoc = app.activeDocument;
        var sel = myDoc.selection[0];
      if ( myDoc.selection.length > 0 ) {
        var newLayer = myDoc.layers.add();
        var newItem = sel.duplicate( newLayer, ElementPlacement.PLACEATEND );
        var myTrace = newitem.trace();
        var myOpts = myTrace.tracing.tracingOptions;
        myOpts.tracingModeType = 'TRACINGMODEBLACKANDWHITE';
        app.redraw();
        myTrace.tracing.expandTracing();

    Hi Jose, if your selection is other than PlacedItems or RasterItems, you have to rasterize it first.

  • Could not find selected item matching value "New" warning message in ADF

    Hi,
    I have a selectOneChoice1 for a field which has the following fixed values in it. And while creating it, I selected the 'SelctionRequired' option so that this field will always have a value.
    New
    Pending
    Completed.
    While navigating to this page, I am trying to set the value to 'New' (Retrieved from the DB) in the backing bean. But when the page is rendered, the above field is empty with the above options in the list and jdev has the follwing error message in its log.
    WARNING: Could not find selected item matching value "New" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=selectOneChoice1]
    Can any one help me with this issue?
    Thanks,
    Priya

    The value of a list binding is the zero-based integer position in the list that is selected, not the actual underlying value.
    The simplest way to set the value of an attribute is to use an attribute binding (which can be bound to the same attribute as the list binding). When you set the value of an attribute binding, it sets the value as you supply it. Otherwise, you'd need to set the list binding's value to the numerical "slot" number of the one you want to change the value to.

  • Javascript help to copy selected items from one list to another list on same site

    Hello,
    So I have a request that I am not sure how to handle. I have created a page with a list view webpart that displays all the items from one list.
    The user is then supposed to select off multiple list items and click on a button (most likely a ribbon button) that will take the selected items and copy them to another list on the same SharePoint site.
    I would like to do this with JavaScript, but have only found an example that copies library items to another library.

    Hi KansaiKel,
    According to your description, my understanding is that you want to copy selected list items to another list.
    I suggest you can use JavaScript Client Object Model to achieve it.
    Here is a code snippet for your reference:
    <script type="text/javascript">
    var context = SP.ClientContext.get_current();
    var siteUrl = 'http://sp2013sps/sites/test';
    var clientContext = new SP.ClientContext(siteUrl);
    var web = context.get_web();
    context.load(web);
    var sourceId = SP.ListOperation.Selection.getSelectedList();
    var source = web.get_lists().getById(sourceId);
    var oList = context.get_web().get_lists().getByTitle('Copy');
    context.load(oList);
    var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
    alert('debut');
    for(var i in selectedItems)
    var currentItem = source.getItemById(selectedItems[i].id);
    context.load(currentItem);
    context.executeQueryAsync(Function.createDelegate(this,test),Function.createDelegate(this,error));
    function test(sender, args){
    var itemCreateInfo = new SP.ListItemCreationInformation();
    var oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', currentItem.get_item('Title'));
    oListItem.update();
    oList.update();
    alert('done');
    function error(sender, args){ alert('error');}""
    </script>
    Here is a detailed article for your reference:
    Complete basic operations using JavaScript library code in SharePoint
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • I cannot copy and paste to a new layer in PSCC

    I am trying to use the magnetic lasso tool to outline my product and move that product to it's own layer so I can create a banner.
    The lasso will not turn off, I have made sure it met the beginning of the outline, and I have clicked enter. I was instructed to copy the product and paste it and it will show up as a new layer. I am concerned that I have something set or not set that would cause the tools to stick, and that I am missing a step between copy and paste.
    Can someone please help me or direct me to a tutorial that will cover these subjects? I have been trying to figure it out on my own for two days.
    Thanks,

    I actually found under  EDIT then Catalog settings / then metadata that the automatic write changes to XMP had been unchecked. Once I check this, it updated and connected all the keywords to the pictures. Now when I copy and paste the keywords show up as I can now detect them in Adobe bridge when before I couldn't see them even though they were in lightroom. . Thanks for your input.

  • How do i copy library items to a new users when my finder wont open?

    i had the problem of my finder opening and closing constantly, i got told i need to create a new user which i did, the finder problem does not occurr in the new user, i then got told i need to copy my library items i want over to the new users but i cannot do that because the finder keeps closing my windows, any tips on how to access these folders not through the finder?
    thabks, nervous kiwi.

    if finder is quitting unexpectedly during use, this is not a good thing.
    if it is not persisting in a new user, then it is a corrupt user preference.
    there are ways of accessing the data you are looking for without using finder, but if you are going to go that route, you may as well try and fix the finder issue you are having.
    you will need to do all this through terminal.
    you can probably just rename the ~/library/preferences folder to preferences.old then restart and log in to your user. and then it should work. the draw back to this, is you will lose your preferences. but you can always move over the ones you want back throught the finder window once it is working again.

  • Copying one item and creating new item - Sales Order

    Hi Guys,
    I have a requirement where one item in sales order have to be copied within the same order as new item and the only change is site.
    For example Sale order 1 - line item 10 - Material A site XXXX
    Requirement Sales order 1 - line item 20 - Material A site YYYY
    Now the sale order 1 will have two lines for the same material but the site is different.
    Is there a possibility to do the same.
    Regards
    Atul

    Hi,
    If i am not wrong, i assume you are using site instead of plant.   If it is plant , then "yes", we can have a order with same material being line item 10 and 20 with different plants.  Reg delivery, if the plants are configured to a same shipping point then you will have one delievery.  if the plants are configured for a different shipping point , then delivery will be split up.
    Reward if it helps,
    Thanks & regards,
    CLN

  • Sharepoint Designer Copy list item over to new list when certain value is met

    Hi,
    I am copying over an item in one list over to a new list once it meets certain criteria. I have attached the workflow of what I am trying to do here. I have also attached a screenshot of the list on which I am moving item. The list I am moving item
    to is identical.
    For some reason however this is not working for me. What is happening is when I change the value of 'Current Status' to anyying at all the item is moving. I only want the item to move when it is set to 'Solution Agreed'.
    - Body text cannot contain images or links until we are able to verify your account.
    Thanks,
    Martin

    Hi,
    According to your post, my understanding is that you want to copy a specific list item to another list using workflow.
    I have two list “CustomList001” and “CustomList002”. The list contains two column “Title” and “Current Status”(Choice type). Then I create a workflow for “CustomList001”.
    The following workflow step for your reference:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • 'Cut to new layer' function for pixel selection.

    hey guys. This is a pretty minor feature, but it might be handy.
    The feature would be a single comand that could remove pixels from one layer and paste them into a new layer.
    CTL-X technically does this, but since CTL-X clears the selection, the paste has no guide in order paste the pixels into the same location.
    CTL-C, DEL, CTL-V , has the effect of cutting pixels from one layer into a new layer while preserving the selection, but it would be nice to have as a single command.
    The obvious shoice would be CTL-SHIFT-X, but that's liquify, and I like it there.
    So, I propose ALT-SHIFT-X. I know that the alt-shift combination is never ever used, but honestly, it's not a really importnant feature either
    Thanks for reading.

    Already there - control J (new layer via copy) and control Shift J (new layer via cut) - which is exactly what you have asked for. To redload the selection you can simply control click the new layer - mostly you WOULDN'T want to do this, since it just gets in the way. You could reassign them if you wanted.
    Do you seriously think that photoshop version 11- wouldn't have this shortcut by now? These ones were there back in 4 or 5 at least

  • New Layer Via Copy from Extension

    Hello everybody,
    I'm trying to create a new layer using the Layer > New > Layer Via Copy functionality... and I did scan the code using the Scripting Plug-in with this result:
    var idCpTL = charIDToTypeID( "CpTL" );
    executeAction( idCpTL, undefined, DialogModes.NO );
    Then I did convert it to:
    var application:com.adobe.photoshop.Application = Photoshop.app;
    var idCpTL:Number = application.charIDToTypeID( "CpTL" );
    application.executeAction( idCpTL, undefined, DialogModes.NO );
    But this code raises this exception:
    Error: NULL pointer was encountered
              at flash.external::HostObject/__call()
              at com.adobe.csawlib::CSHostObject/hostCall()
              at com.adobe.photoshop::Application/executeAction()
    I've tried to change "undefined" for "null" or any other idea... but with no luck. What am I doing wrong here?
    Thanks a lot!

    Reselect is way too flaky to rely on, and is not going to survive long at the best of times.  I find the whole saving selections thing too time consuming and an annoying interruption of workflow — even if you right click and save an alpha channel.  So I nearly always copy the selected pixels to a new layer, because it works on so many levels.  You can ctrl click the layer to reload the selection; use layer styles, create shadows under the layer…
    Best practice is to add the Alt (Opt) key to Ctrl j so you remember to name it.

  • Select item(s) in layer

    Hi all,
    How do I select Item(s) in specific layer name
    my code is
    var layer=app.activeDocument.layers.everyItem().getElements("Info Layer");
    can any one correct this, help will be appreciate
    Thanks
    Steve

    HI Trevor,
    I have a doubt with the below js lines, If steve want to move the particular layer page items. In this case the below lines not working, So we have to loop it? Because he request to select the particular layer page items. so that, vandy loop the page items right!
    Turn all Items yellow
    app.activeDocument.layers.itemByName("Layer 1").pageItems.everyItem().fillColor = "Yellow"
    Get Elements
    myLayersItems = app.activeDocument.layers.itemByName("Layer 1").pageItems.everyItem().getElements()
    thx,
    csm_phil

  • Automator: selected items

    Here is my workflow in automator
    Ask for finder items
    Open them.
    Do some other processing
    Get specified finder items (path to finder items)
    Copy those items to a new location.
    My problem: automator also copies the previously selected items as well as the item I want copied. Is there anyway to get rid of those first two items. Seems like once they are opened they would no longer be selected but for some reason they are still showing up.
    Thanks

    Automator, by default, will pass all items down the list of actions. If you want to stop that at some point, right-click in the top of the Action and choose to ignore input. The link between the two actions will break.

  • Selecting objects in a layer to copy and paste into a new doc?

    How can I select all objects in a layer and copy and paste the objects into a new document? We are having issues with the copy and paste method. Is this because it uses the operating systems clipboard?

    the sample I mentioned describes how to duplicate all selected objects in a document, using
    var docSelected = app.activeDocument.selection;
    it is usually not advice to use the selection for this kind of stuff, to work with ALL pageItems in a document use
    var allPageItems = app.activeDocument.pageItems;
    now if you only want to copy items in a layer you can use either the index number (for instance, top layer index = 0) or the name of the layer (for instance "Layer1"), use this, you don't have to select them
    var topLayerPageItems = app.activeDocument.layers[0].pageItems;
    or using the layer name
    var Layer1PageItems = app.activeDocument.layers['Layer1"].pageItems;

  • Why, when I paste my selection in a new layer, is it 10 times larger than when I copied it?

    Why, when I paste my selection in a new layer, is it 10 times larger than when I copied it?

    Kevin If you don't understand don't try to take the discussion offline via private message.  Other that have the same problem will not benefit if taken offline here is you PM.
    Hi,
    Thanks for your response to my question. What is the best way to adjust to match resloutions of pictures/photos, etc in PSE 12. I am trying to layer photos and selections from photos but when I cut and paste, sometimes I get this HUGE image that doesn't even come close to fitting on the screen.
    Thanks!
    Kevin
    Kevin
    You need to understand pixels better know what is going on when you do things.  All pixels are not created equal.  Some have better quality the others.
    When you have a camera that take captures  3000x2000 px for an image and you have a good lens and exposure setting you wing up with 6,000,000 quality pixels for your image.
    If you resample that image  for the web to fit within 300x200 pixels you wind up with a 60,000 high quality web size image. Or a high quality image that will fit on your display at its resolution. The images resoultion setting is meanless for displays use their resolutuin they do not support image print DPI resolution setting.  And Displays do not hava a 72DPI resolution. 
    So when your post processing think about Pixels DPI is meaningless except when you use a unit based on DPI like inches.  However also remember Displays do no support the images print dpi resolution.  The only time 1" on display equal 1" in print is when the images print resolution is the same as the display you are using. All displays do not  have the same resolution/ Most desktop displaye are around 100DPI that is changing and Laptop and tablets can have resolution above 300DPI. So what will nor fit on your displat may well fix on a laptop or tablet.
    DPI is actual pixel size 100DPI pixels a 1/100" x 1/100" = 10,000 per square inch  300DIP 1/300"x 1/300"  90,000 px per sq inch.
    The same number on pixels image on a 300dpi display is 9 time larger on a 100Dpi display. What may not fit one your low resolution display may fit on the same size high resolution display for the display  displays more pixels then your display can.
    If you resample that 300x200 web size image to back to a 3000x2000 pixel image for print you wind up with 6,0000,000 lower quality pixels. 
    Though the 300X200 pixels image was a high quality web size image much of the original 6,000,000 image quality was reduced in the 300x200 px image. Much of the detail you had in the original 6,000,000 pixels image was discarded in the process.  The new 6,000,000 pixels image was made only from a 60,000pixel image they were not captures using a camera exposure.  The camera had the actual real detail in front of it to capture.  All the computer had were 300x200 pixels it has to add details for the larger image and it does by interpolating the 300x200px image.
    Preserve the pixel you get from your cameras. They are the highest quality pixels you will ever have for your images.  Every time you resample an image up or down in number of pixels you loose some image quality.   Not one of the original pixels remain intact you wind up with a totally new image created by interpolating the old image.  Do not save the new image over the old image and loose your good high quality pixels. 

  • Copying selection to new layer and changing hue/saturation?

    I made a selection around someone's teeth and I copied it to a new layer.
    1. On the new layer, using Hue/Saturation, what is the best way to remove some of the yellow in the teeth? I chose yellow from the drop-down, though I am doing something wrong because the teeth are not appearing more white.
    2. Is it a better idea to do this as an adjustment layer instead of copying it to a different layer, or is it just a different way to do the same thing?
    Thanks.

    "If you create a new layer it is likely to create more additional data than the Mask of an Adjustment Layer."
    1. What do you mean by additional data?
    If you lift a part of an image onto a new layer that layer has as many channels as the image (3 for RGB, 4 for CMYK etc.) whereas an Adjsutment Layer has one channel (its Mask), so the file would increase in size more in the first case (unless it is a grayscale image or possibly if the layer has no detail etc.).
    2. To get rid of yellow in the teeth, are you suggesting to slightly desaturate in the Masters and than a bit more in the yellows? So doing it to both?
    Yes, but just try and see if it helps with your image.

Maybe you are looking for

  • BAPI_PO_CREATE1 missing GL a/c no. and cost center in every 100th PO line item

    We have a strange issue. We are creating Service Purchase Orders by using BAPI_PO_CREATE1 function module. The source for creating PO is a Z table wherein it contains approximately 1000 records. We create one PO per Vendor and all POs are creating su

  • I cannot seem to edit/delete text in a pdf using the Acrobat XI trial

    Is that feature not available in the trial or am I just missing it? All/any help is appreciated!

  • Possible to get application parameter in value help

    Hello colleagues, we developed a value help for business partner to use it in an wda-component . in this value help only those business partner should get supplied where the user has a relationship to . to make it really difficult we can not use the

  • Choppy dvd/mpegs RS482M4 motherboard

    Newbie here, first puter I have built in about 5 years. Boy have things changed LOL. Using the RS482M4 motherboard, AMD3000 CPU and 1 gig Corsair memory Enermax'disco' case w/ 350w power supply.(for now) windowsXPsp2 OS. Only have two real issues. 1.

  • Cut text from string

    Hello. Is there any way I can cut text from string? I have responseResult variable which has value: {"success":true,"error":"No any errors."} I want >>No any errors. << text from that string variable.