How to duplicate three rectangles at once without grouping?

How to duplicate three rectangles at once without grouping?

Each rectangle is on another layer.

Duplicate a rectangle at a time as I can, but not this way.

I will duplicate the rectangles in the second document.

At most I might like this: (but it cannot be so because there must be rectangles).

        function ItemByRange(){
            var sourcepage = app.documents[0].pages[0];  
            var destpage = app.documents[1].pages[0];  
            sourcepage.pageItems.itemByRange(app.documents[0].pages[0].rectangles[1], app.documents[0].pages[0].rectangles[4]).duplicate(destpage);  
            }

I use InDesign CS6 and CC, JSX, .vbs. Mac and PC.

Thank you!

Hello

I tried other ways but always appears a problem.

This is the result

I wrote that does not have problems positioning of objects between them and their layers.

Example usage of three labels:

var findLabels = new Array("Name","Photo","Company");
var joinLb = findLabels.join();
var result = myAttempt_18 (joinLb);
alert("Duplicate objects: " + result);

function myAttempt_18(joinLabels){
    var resultLength = 0;

    var sourceDoc = app.documents[0];
    var sourceObj;

    var destDoc = app.documents[1];
    var destpage = destDoc.pages[0];
    var destSameLayer = new Array();
    var destArrayObjs = new Array();
    var duplicateObj;

    with (sourceDoc.pages[0]){
        for (var h = pageItems.length-1; h >= 0; h --){
            sourceObj = pageItems[h];
            if (sourceObj.label != ""){
                if (joinLabels.indexOf(sourceObj.label) > -1 ){
                  duplicateObj =  sourceObj.duplicate(destpage);
                  destArrayObjs.push(duplicateObj);
                  destSameLayer.push(sourceObj.itemLayer.name);
                    }
                }
            }
        }

    if (destArrayObjs.length > 0 ){
        resultLength = destArrayObjs.length;
        destDoc.select(destArrayObjs, SelectionOptions.replaceWith);
        destGroup = destDoc.groups.add(destDoc.selection);
        destGroup.move ([0,0]);
        destDoc.select (destDoc.selection, SelectionOptions.removeFrom);
        destGroup.ungroup();

        for (var L = 0; L < destArrayObjs.length; L ++){
            destArrayObjs[L].move (destDoc.layers.item(destSameLayer[L]));
            }
        }
      return resultLength;
    }

This script will be part of another larger script.

The code isn't beautiful, but you can use.

Link to the document that I tested. (www.wetransfer.com)

http://we.TL/6gpfa3zC2W

Elvis

Tags: InDesign

Similar Questions

  • I just new iPhone 7 &amp; when I transfer, none of my music is available offline (purchased and apple's music program), trying to figure out how I can download it all at once, without having to enter each individual album and click the cloud

    Just got the new iPhone 7 & when I transfer iphone 6 iPhone 7, my music has arisen on the phone, but none of my music is available offline, try to understand how I can download all at once for use offline, without having to enter each individual album and click the cloud.  I have a lot of music on my phone, would take me forever to individually download each album one by one for offline use.

    I have both bought albums/songs itunes and also many of the monthly music apple package.  In any case for all it all at once?

    Hello

    You must use the same identifier apple

    Go down homepage itunes page where it says more about this music bought to display

    And download

    For music apple if its does not sign of apple ID then sign.

    See you soon

    Brian

  • How can get rid you of the bookmarks I don't want everything at once without having to delete one by one. Step by step please.

    How can delete multiple bookmarks that I don't want everything at once without having to delete one by one in the menu dropdown. Step by step please.

    Click the Favorites button in your menu and then "show all bookmarks" (or Ctrl + Shift + O). On the left side, you can click on toolbar or Bookmarks menu or Unsorted Bookmarks bookmarks (depending on where you have saved the). Now you can mark multiple bookmarks by pressing the Ctrl or the SHIFT key and clicking on it and pressing then on delete.

  • How can I select all instances of a component in the timeline at once without manually shift clicking on each instance?

    Title says it all!

    How can I select all instances of a component in the timeline at once without manually shift + click each instance?

    The reason why I want to do this is because I have a video clip with MANY quick cuts. So the clips are cut out and splattered everywhere. I'm color correction now and so I want to be able to select a clip around wherever it exists in the timeline so I can drag the effect on all the at once, without having to search each occurrence of the item in the timeline panel. This lot "select" would make it so I don't miss not all instances of the clip and saving a ton of time going through the timeline and Shift clicking whenever the clip is also up.

    I hope that the PP is smart enough to do this

    Thanks in advance!

    -Tim

    Choose a single instance of the element, perhaps even the first bit... and use the new Master Clip feature... Firstly here is a written explanation and a video tutorial on this operation... This is a great feature.

    Adobe Premiere Pro help. Master Clip effects

    How to apply effects to all instances of a clip. Adobe first Pro CC tutorials

    Neil

  • How to duplicate layers &amp; groups without automatically add a "copy", "copy 1", "# copy" at the end of the new group.

    How to duplicate layers & groups without automatically add a "copy", "copy 1", "# copy" at the end of the new group.

    He has been harassing me for a while now, since I often work with the same elements over and over again. His frustration of having to change the name of each layer manually, especially if I copy an entire group.

    Is there a setting in Photoshop or maybe an external script that can help solve this problem for me?

    See you soon,.

    Qiming

    You can go to the Forum script:

    http://forums.Adobe.com/thread/433759?TSTART=0

    http://forums.Adobe.com/message/1116182#1116182

  • How to duplicate a payload in a BPM process?

    How to duplicate a payload in a BPM process?

    Thank you

    The screenshot of the process the Workflow tool that you used looks like it helped a split occurs with no melting downstream point.

    This is not allowed in BPMN.  Parallel and inclusive gateways must have a downstream melting point.  Because the model you have described has no melting point, it would be better managed using an activity to send without being involved a bridge.

    Once this activity send is called, another process (or service) is called asynchronously.  In this case, the process called can contain activities that you are showing "Path 2".  Once the send activity is called, the work item instance continues to the next step of the original process automatically and would go maybe through the series of activities that you testify "Path 1".

    Here is a recent blog post that I wrote which describes the patterns of different processes supported in BPMN and Oracle BPM: model processes using BPMN BPM | AVIO Consulting

    Hope this helps,

    Dan

  • How to remove photos from my iPhone without deleting icloud photo library?

    My iPhone is full and I wanted to remove some photo to release some spaceso I supported the up to iCloud and I started to remove photos. ***? They are endangered to iCloud! Now, they're just gone. It's crazy! Image capture you can import to everywhere, but the function "delete after importing" seems to have disappeared. I'm sure this question has been beat to death, but how you remove photos from their phone without removing them from their photo library iCloud?

    So frustrating.

    Does anyone know of a solution to this?

    iCloud is a synchronization system, not just external storage.  Once you turn on photo library all you do with a photo is on ALL of your devices (including remove them).  See the last section in this article on how to recover pictures that you inadvertently deleted:

    iCloud: use iCloud photo library on your iOS device

    It is also here:

    Get help with your photo library - Apple Support iCloud

    How to remove pictures and videos from a camera using iCloud photo library?

    If you want to delete the pictures and videos of all your iOS, Mac and iCloud.comdevices, you can delete them in the Photos app.

    When you delete a photo or video of your Photos app, also will not delete your photo library and iCloud iCloud storage. You can retrieve your photos and videos from the album recently deleted for 30 days.

  • Dual boot Windows 2000 and Windows XP. How can I remove Windows 2000 safely without affecting Windows XP?

    I have 2 OS need to remove a

    I have 2 operating systems, Windows 2000 Pro and Windows XP How do to remove Windows 2000 Pro without messing my XP?

    Try to run, type: diskmgmt.msc

    MSC, locate & R.click on the partition of 2000, select 'Delete' of the score.

    Once through, locate the space, R.click now black on it, select "create partition".

    Follow the instructions in the wizard and use the default settings... Once thru, L.click on the new partition,

    go to the actions, all, select 'Enable', exit msc. You can / could also do it in

    the recovery console, in the console, type: DiskPart in DiskPart, highlite 2000 partition.

    Select 'remove', once by, select "create partition", once through, press ESC.

    then type: FORMAT D: D: NTFS being the new partition, are still active in

    diskmgmt.msc

  • Mac question? -Duplicate file names appear once I have copy on mp3s

    It seems that although the Compatible Mac box, it was a stretch far from easy to use or Setup for a non techno.

    I figured out how to import a CD on ITunes and convert it to an mp3. Then copy it to the "rocket".

    But my problem is when I copy a song or an entire album, when I turn on the "rocket", it shows duplicate songs and duplicates are in the Unreconizable folder and do not work.

    This can become very confusing. Anyone has any ideas on how to import MP3s on a mac without getting these ghosts / duplicate files?

    If I can't understand, I guess I'll try to return it and get an IPod. No use to me like that.

    Help, please. I want to keep that player.

    thegaspar wrote:

    I figured out how to import a CD on ITunes and convert it to an mp3. Then copy it to the "rocket".

    But my problem is when I copy a song or an entire album, when I turn on the "rocket", it shows duplicate songs and duplicates are in the Unreconizable folder and do not work.

    Your problem is that you used the Finder to copy files to the player.  Who creates the files 'duplicate' which are really containing of Finder metadata files.  They lead the players nuts.

    I wrote a web page describing this problem and how to get an MP3 as the "rocket" to work with the Mac.  See http://guyscharf.wordpress.com/mp3-on-macintosh/ for more details.

  • How can I delete all emails read without highlighting each one and delete it

    Original title: how to remove the old E-mail

    How can I delete all emails read without highlighting each one and remove it.  You want to remove them all at once.  I use Windows 7 and Windows Live Mail 2011

    To remove all the: select one and Ctrl + A will highlight all. -Delete.

    To delete a section: highlight the first one you want to remove. Scroll to last and click while holding down the SHIFT key. -Delete.

    To delete several messages that alternate: hold down the CTRL key while you click each message in order to highlight. -Delete.

    To empty the remove items, click on it and there will be an X to the right.

    SHIFT + DELETE bypasses the deleted items folder.

  • How to duplicate the artboard and move it over the original?

    Basically, I have a document open and want to duplicate its work plan and then move it to a new location (the X axis, the original 50pixels). Doesn't seem too hard, but I can't understand it. This is for CS5.

    var app.activeDocument = docRef;

    var abSrc = docRef.artboards [0];

    var abSrcX = abSrc.artboardRect [0];

    var abSrcY = abSrc.artboardRect [1];

    var abSrcW = abSrc.artboardRect [2];

    var abSrcH = abSrc.artboardRect [3];

    abSrcX = abSrcX + 1221;

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    dupAB var = docRef.artboards.add (abSrcRect);

    The above works a bit. Original work plan is 17 "x 11" (1224px x 792px) and when I put abSrcX to the foregoing 1221, extendscript throws an error PARM. During one of my sessions of trials and errors, I decided to see what was the document geometricBounds:

    $.writeln (docRef.geometricBounds); = 45-12, 1221.154296875,-780

    So now, I see a bit where I can't go more than 1221, but why can't I?

    I moved the artboard for everything at the top left of the document and I got the geometricBounds again and they were - 6754.5,7038.5,-6463.5, 6736.5, but still can not abSrcX anything about 1221.

    the error is "error Illustrator: 1246458189 ("PARM").

    I tried to understand this is what courses I can think, but nothings working. Any input or help would be GREATLY appreciated!

    EDIT:

    So I tried this for the hell of it:

    var abSrcX = 0;

    var abSrcY = 1224;

    var abSrcW = 1224;

    var abSrcH = 792; (for some reason any 792 translates into 6 "inside the Illustrator, so I put this 432 to make 11")

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    dupAB var = docRef.artboards.add (abSrcRect);

    and it adds a new work plan and move to X, Y, such that designated. Not exactly what I want, but narrowing down the issue.

    I'm trying

    var abSrcX = 1224;

    var abSrcY = 0;

    var abSrcW = 1224;

    var abSrcH = 792;

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    dupAB var = docRef.artboards.add (abSrcRect);

    and he throws that error PARM still once, then now there is really no sense!

    Edit2: I changed abSrcY to 10000 and now the height of the artboard is really long, which is insane even more... I don't have the (x, y, width, height) artboardRect down wrong?

    Edit3: If after one more google search, I found out what the problem is. artboardRect is HIGH, LOW, LEFT, RIGHT; and when I do:

    var abSrcX = 1368;

    var abSrcY = 0;

    var abSrcW = 2592;

    var abSrcH = - 792;

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    top down right and left;

    dupAB var = docRef.artboards.add (abSrcRect);

    This works. BUT I have no idea what the numbers are in relationship with. The center of the artboard? The document Centre? And if I run it again and change... oh dear.

    I think that I just thought of it.

    abSrcX is on the LEFT;

    abSrcY is HIGH;

    abSrcW is RIGHT;

    abSrcH is DOWN;

    Considering that if I add (1224 + 144) to abSrcX and abSrxW, it creates another work plan 2 "away from the previous 17" x 11 ". If I want to run again, I just have to add (1224 + 144) abSrcX and abSrxW again. Now to find a way to do it dynamically on the fly.

    I still like to hear comments on the question of whether this is good or bad, and how I can improve!

    @clrx01,.

    Why do you work with width and height work plan?

    IMHO you need what only once.

    Try something like this:

    // ArtboardCopy.jsx
    // http://forums.adobe.com/thread/1320239?tstart=0
    //        How to duplicate artboard and move it relative to original?
    // regards pixxxelschubser
    
    var docRef = app.activeDocument;
    //var abSrc = docRef.artboards[0];
    var abIdx = docRef.artboards.getActiveArtboardIndex ();
    var abSrc = docRef.artboards[abIdx];
    
    var moveX = 50;
    
    var abSrc_L = abSrc.artboardRect[0];
    var abSrc_T = abSrc.artboardRect[1];
    var abSrc_R = abSrc.artboardRect[2];
    var abSrc_B = abSrc.artboardRect[3];
    
    var next_ab_L = abSrc_R + moveX;
    var next_ab_T = abSrc_T;
    var next_ab_R = next_ab_L + (abSrc_R - abSrc_L) ;
    var next_ab_B = abSrc_B;
    
    //top left right bottom;
    
    var next_ab = docRef.artboards.add([next_ab_L, next_ab_T, next_ab_R, next_ab_B]);
    

    Have fun

  • How can I resize a shape tween without that he's looking wonky?

    Hello! I am a beginner in flash animation, although I used it to draw several years before.

    I have a problem that I can't find the answer to the simple. I looked in many places.

    in any case, I have a scene to its default size to 550px x 400px. I thought it would be easy to change later if I don't bother making it larger at the beginning. Now that my drawing is completed, I want to make the biggest scene (of 1024px x 768px) AND stretch the graphics / content on the stage as well as the well adapted to the larger stage. And I want it centered too because it is aligned to the left now when I preview it in my browser. It would be a piece of cake, if I didn't have a shape tween that looks to wind blowing hair in!

    The dilemma is that when I resize the graphic, the shape tween ends as a result of these movements, thinking that it is the part of the animation when it is not supposed to be. My question is how can I resize a shape tween without keyframes following the movements that I do? I want just a larger version of the shape tween, I already have put in place and don't want more bigger / change of position to be part of the animation!

    Help, please. Thank you!

    One of those three things should work:

    1. Try to click the key next to the stage width and height and enter your new width and height, then clicking on 'Scale content with scene.'
    2. In your publishing settings, select "percent" and a percentage higher than 100.
    3. Follow the steps here http://flashthusiast.com/2009/10/06/scaling-and-moving-new-motion-tweens-in-flash-cs4/

    Good luck!

  • How you duplicate a menu that you have edited in PS

    I've just set up a menu the way a customer wants it, but I have several DVD to do.

    How to duplicate the DVD menu without having to recreate it again in PhotoShop.  Thank you

    TEX

    In the same project: select it in the project Panel, and go Edit-> duplicate.

    In a different project, import in the menu of the other project, the original project or, make a backup file menu (or model if you have assets of the motion as part of it).

    If you try to save the links, it gets complicated.  You can try to do a basic project and do a backup like, making the new variant, then back to the original project and do a save as new.

  • How do duplicate you a page within a PDF file?

    I have a multipage PDF and ive never been able to understand how to duplicate a page that I have inside without duplicating the file and pulling on a page and do slip into the other file.  Just a long way to do for something that seems so simple.  Is it possible to do?

    I found this in the help file - hope it helps!

    1. Click the Pages button to open the Pages panel, and then select one or more page thumbnails.
    1. Do one of the following:
    2. To move a page, drag the box page number of the corresponding thumbnail of the page, or on the thumbnail of the page itself to the new location. A bar appears to show the new position of the thumbnail of the page. The pages are renumbered.

    • To copy a page, Ctrl-drag/Option-drag the thumbnail of the page for a second location.

  • How to make changes to existing configurations without quisceing

    Hi gurus B2B.

    How to make changes to existing configurations without quisceing and deployment of retirement?

    Its a production server, my project went live, a few weeks before. After two weeks my ISP asked me to change the delimiter setting of * to,.
    I then to the deployment, Quisced tab, retired, purge the existing configurations, and then I did the changes, approved the agreement and TP and recreated the (config) deployment even once, it happened successfully, but WE are unable to see the old transactions.

    Could someone help me how to make any changes without purging,

    If we simply pull out, wiothout purge, it shows error that name already exists.

    Concerning
    Suni

    Hi Suni,

    In B2B of Oracle 10g, it is mandatory. You must transfer the configuration (after quisceing and retirement) each time you make any change in the configuration.

    but WE are unable to see the old transactions.

    Once an old configuration gets served, messages related to it would not be included in the report, but they must exist in the DB tables. You can take an export (from the console) to the existing messages each time before you purge the old configuration to keep a backup copy of copy paper.

    If we simply pull out, wiothout purge, it shows error that name already exists.

    Two configurations with the same name cannot co-exist, and whence this error.

    Kind regards
    Anuj

Maybe you are looking for