Select and move items on the page...

Hello world

We are currently working with InDesign CS3 documents. I have to select all the items on each page and move it with 9 pts both both horizontal than vertical position. If it's a recto page movement-9 pts and if it's the back page must move + 9pts. So what I do is, try to select all items in page and do it in a group. After this should get the geometric limits of the Group and move it in 9 pts. I got an error when doing my selection in the group. Find the script below

//------------------------------------

var doc = app.activeDocument;

var mySelection is doc.pageItems.everyItem () .select ();.

var myGroup = doc.groups.add (mySelection);

//------------------------------------

can anyone give in this help me. Also suggest me if there is a better way to do it.

Concerning

Indana

Try this:

var dx = 9, u = 'pt';

Object.prototype.offsetX = function()
     {
     if (this.parent.constructor != Page) return;
     var sgn = 1 - 2*(this.parent.documentOffset%2);
     this.move(undefined,['' + sgn*dx + u,0]);
     }

var items = app.activeDocument.pageItems.everyItem().getElements();
var obj;
while(obj=items.pop()) obj.offsetX();

Marc

Tags: InDesign

Similar Questions

  • How to select and move more than one bookmark at a time? Shift + click selects multiple items that are next to each other in a list, because the element

    How to select and move more than one bookmark at a time?
    Shift + click selects multiple items that are next to each other in a list, because the items open in firefox before that happens.

    Glad it worked for you. Thanks for posting back.

  • Select and move the multiples within the document

    How can I select and move multiple items (text and form fields) in my document without holding down the CTRL key and selecting all alone?

    It is of course possible. You can select several fields (and other elements) by pressing the page with the left mouse button, holding it down and then dragging on the fields that you want to select. All fields (even partially) entering the area you mark will be selected when you release the mouse button.

    Another option is to select a range of fields in the fields list (in form editing mode) Panel, by clicking on the first and then shift-click the last one.

  • I wish I could drag and drop items from one page to another of the window of the plan. Is this possible?

    In desiging my site, I want to be able to move items from one page to another by drag-and - drop from the flat screen of architecture. It would also help if the window could have a zoom in and out function to facilitate this.

    I just tried to zoom in the map window and discovered that it works.

  • ITunes is downloading all items purchased from my iPhone, including tv shows and movies, using all the memory and batteries

    ITunes is downloading all items purchased from my iPhone, including tv shows and movies, using all the memory and batteries, does anyone know how to stop this?

    Hi anthony248,

    If you don't want the automatic downloads enabled on your iPhone, follow the steps outlined in the article below, except that you will turn off the switch rather than turn them on.  I'll also include a link about the storage capacity of your iPhone and how to delete items that you don't want.

    Turn on automatic downloads

    Check your storage space on your iPhone, iPad and iPod touch

    Take care

  • Impossible to select and move the letters while playing 'Word with friends' through facebook

    Original title: play games

    During playback "words with friends" through face book... I can't select and move the letters on the touch screen without the screen, scrolling up and down.
    I need the touch screen to allow the movement of the letters c A C H, etc. on the game board without scrolling of the image of the screen!
    Several of my Face book games does not load completely without hanging... both Adobe Flash player and Windows are also perfectly up-to-date.
    Kind regards

    Hi Stephanie,

    Looks like you are unable to play words with friends on Facebook and also problems with other facebook games.
     
     
    Since you are faced with a design problem with the play on words with friends on facebook, I suggest you to contact the administrator of the game to get more information about the compatibility of the game in Windows RT. You can also ask if they provide latest app for the particular game.

    support.Zynga.com/Home/Words-with-friends
     
     
    I would also ask you to contact Facebook to get information about other games:
     
     
     
    Hope this information helps.
  • I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    A Google search for "animated gifs arrows" returned hundreds of animated arrows.

  • Delete the last item on the page with some scriptlable

    Hi @ all,

    I'm trying to solve the following problem, I hope one of you can help me:

    Import xml files into a database in InDesign (CS 5.5, Windows 7) to get a full product catalog.

    Before each product group is inserted a subheadline (separate textframe with scriptlable 'katalog_untergruppe'), but in the case of a page break, it's the last item on a page.

    Can I somehow, select these elements and remove them with a script in the InDesign document?

    I tried to do on objects on each page of counting and remove the frame if there a number higher than 40, but the number of objects is different, so sometimes necessary frameworks are deleted and some are still there.

    So I need to check if it's the last item on the page. Any ideas?

    Here my test:

    function test() {}

    for (var i = 0; i < document.allPageItems.length; i ++) {}

    If (document.allPageItems [i] .label! = "") {}

    PAGESTART

    If (document.allPageItems [i] .label == 'katalog_untergruppe') {}

    var n = 1;

    While (document.allPageItems [i + n] .label == "") {}

    n ++ ;

    }

    if(n>40) {}

    document.allPageItems [i] .remove ();

    }

    }

    If (document.allPageItems [i] .label == 'katalog_untergruppe' & & document.allPageItems [i + 1] .label == 'pagestart') {}

    document.allPageItems [i] .remove ();

    }

    }

    }

    }

    test();

    Thanks in advance :-)

    * Rike *.

    @ Jump_Over

    This does not work either, sometimes now other executives of related texts are deleted.

    With the help of someone else in combination with yours, I have now found a working solution.

    Search for the item lowest, if it is marked "katalog_untergruppe", delete it.

    Thank you very much.

    @Hans

    Sorry for not posting a file, but I'm not allowed to.

    @all

    Here a script to work for the problem, it is perhaps useful.

    function test() {}

    for (var i = 0; i)< app.activedocument.pages.length;="" i++)="">

    currentPage var = app.activeDocument.pages [i];

    var lastpageItems;

    for (var j = 0; j)< currentpage.pageitems.length;="" j++)="">

    var currentpageItems = currentPage.pageItems [j];

    If (j == 0)

    lastpageItems = currentpageItems;

    ElseIf (currentpageItems.geometricBounds [0] > lastpageItems.geometricBounds [0])

    lastpageItems = currentpageItems;

    }

    If (lastpageItems.label is "katalog_untergruppe")

    lastpageItems.remove ();

    }

    }

    test();

  • Cannot move items on the desktop to the trash.

    Cannot move items on the desktop to the trash. Get code error - 43.

    Solved my problem. Rebooted and just stop. Strange.

  • How to create a rectangle of fixed ratio and move without cutting the image?

    I know it's a simple question with a simple answer, but I did not yet find that answer. Usually, I crop my photos in a size 2 to 1 fixed ratio for Twitter. I used to extend the fixed ratio to the size I wanted and then move the tool of selection of ants marching to the area I wanted to reframe. However, in the last few months I'm not able to move the selection without cutting the photo. I used to create my selection and move the cursor over the moving dotted line and then move the selection. This is never a problem. All the answers as to what I might hurt?

    Thanks in advance.

    Sandra

    If there is no selection and you move the selection with the "MOVE TOOL" it will reduce the image

    To move the selection without cutting image, use any 'Sélection' tool instead of the move tool.

  • Info session not showing all the items on the page

    Hello world

    Apex 4.2.5.00.08

    Need to check a mental health, went to check the values of session of an item on a page and only the PK element was on the list in the State of Session window.  See the list of items on the page by using the tab elements and they are all there.  Page source checked and yes they have values

    < snip >

    "" < td align= "right" >< label for= "P174_DESCRIPTION" tabindex= "999" >< a class= "option-w-help" href= "javascript:popupFieldHelp('1261598755721459294','2188531882820')" tabindex= "999" >default< /a > </ label > <table > ""

    < / snip >


    Still this hidden item is displayed in the window of session state

    < snip >

    < input type of =" hidden " name =" p_t28 " ID = " P173_COMPONENT_COUNT " " value =" 0 ">

    < / snip >


    and I don't mean tha the value is missing, but the real thing is not on the list of issues


    Thanks for your help.


    Gary


    When you inspect the session state?

    How and when are the set of values of item?

    See this current thread for what seems like the same problem: The State of Session items that are database columns

  • URL - separated by commas contains a list of values to assign items to the page '&amp; '.

    I want to pass values to the page elements in a URL which includes this symbol '& '.

    example: ...f?p=209:1:::p1_ind:aerospace%20%26%20defense
    expects that AEROSPACE & DEFENSE would be passed to the element P1_IND to Page 1 of application 209
    the page is a select and display in the selection list value is AEROSPACE & DEFENSE
    This URL causes an error - mod_plsql: / pls/eds/f HTTP - 400 Missing '=' in query string or post the form (from firefox)... (IE returns a HTTP 400 .but you can find the mod_plsql error in the Apache error_log)

    If I run the same URL as above, but this time modify the P1_IND page to display text element (special escape characters, does not save the State)
    the URL successfully calls the page and displays the value in the element P1_IND - AEROSPACE & amp; DEFENCE (without the space between the & amp...) I could not determine how to get the word combined to make here)

    Once more with the same URL, but this time the page P1_IND element set to display text (does not save the State)
    the URL successfully calls the page and displays the value in the element P1_IND - AEROSPACE & DEFENSE

    QUESTION: How to pass a value to a page element 'list of selection' in a URL when the page element includes an ampersand?
    .. .and what is the relevance of the mod_plsql error... /f HTTP - 400 Missing '=' in query string or form post

    The Solution is to use the spaces (%20) instead of 26%

  • Print the URL at the top / bottom of page is too small and half out of the page

    I put it to print the URL and the title at the top of the page and the Date at the bottom of the page. He tries to do, but the impression is verrry small and 1/2 off the page.

    Works very well with Google Chrome.

    New printer WF 2540, test page is good.
    Mac 10 X

    Thanks for your help!

    Peter

    The font size of header and footer is still low. Last time I looked, I couldn't find a way to replace the default size of 10 others to choose a font that is intrinsically superior to Times New Roman as your default serif font. See: can I possibly enlarge the headers and footers in the "Page layout" menu of Firefox to make bigger it so I can see it better... or is this something I won't have to deal with being so SMALL. I don't check for a complementary solution; You can try looking for one on the Addons site.

    As the position on the page, some printers don't allow you to get all the way at the edge of the sheet. If that's the problem, you might be able to fix in the General settings of your system for your printer dialog box. I don't see a way to access of the Mac print dialog (Firefox print dialog screenshots in this article: How to print webpages in Firefox), so that you may find in Control Panel.

    If this does not work, there are certain preferences that Firefox stores with names similar to the following. In these environments, 25 = 1/4 inch (the value is divided by 100).

    • Print.printer_BrandX.print_unwriteable_margin_top
    • Print.printer_BrandX.print_edge_top

    To modify these, you can use the subject: configuration preferences editor. In a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful. Then use some of the more unique terms (for example, unwrit or edge) to filter the list.

  • How to copy and paste text from the page of the book one photo to another.

    Hello, I downloaded this software 2 days ago, and I had so much fun with it. pls I need help on how to copy and paste text from the page of the book one photo to another. Second, how to copy my photo book completed pages project to another laptop computer for printing. Thank you

    Wow! I solved the first problem, I clicked on 'ctrl c' to copy and "ctrl v" to paste. yipppppeee! now am loving this software d most just need help with the second question now

  • Just did my laptop, tried to do windows updates and get a message T "here has been a problem the site witt" and can not open the page I requested at this time.

    Just, I redid my laptop using my system recovery disks. I went to windows update and get this msg when I click on Express.com: the site has encountered a problem and cannot display the page you are trying to view.

    Original title: I redid all my laptop. I went to windows update and get a message that says: there was a problem witht the site and I wanted that the pag can not open the page I have requessted at this time.

    You must download and install Windows XP Service Pack 2 (if not already installed) followed in Windows XP Service Pack 3.  You will find two of them at http://www.microsoft.com/downloads - download the "Network Installation Package" for the two and ignore the part about them being only for the professionals - the parcel I recommend you download will install with or without network connection.

Maybe you are looking for

  • Y at - it an upgrade online to get my 3210 to load on a Vista computer?

    Hi - I had to get a new computer and it came with Vista.  My computer will print, but I can't get the SCAN to work, and the CD installer says I have the wrong operating system to load.  I LOVE this printer - is there an update or some files I can loa

  • Satellite P10 replace battery when the AC is connected

    I have a problem with my laptop P10.When the laptop is turned on and AC power is on as well, it changes the battery so that I can only for work on 1.5 hours. However, the main power supply is open!When the laptop is turned off the red indicator light

  • The early 2008 MacBook Pro OWC memory card upgrade

    I have a question about the purchase of an upgrade with OWC memory cards. I need to upgrade my Mac Book Pro early 2008 edition. Is that what I should get the full package of 6 GB with 2 GB and 4 GB included? Or just buy a 4 GB card and add it to my 2

  • Telepresence reduandancy

    Dear all I'm still a beginner in telepresnence and I have a few questions as follows below: I have two VCS controll (one for reduandancy) and two VCS expressway (the other for reduandancy), MCU and TMS, with points of ending double CTS 50 tandberg 20

  • Long time loading at the average price of simulation software (video slideshow)

    Hello!I'm working on a project of e-learning for my business, and the project includes a series of slides "software simulation", where I captured some action (filling out me and submitting a form). While most of the blades is regular blades where the