How can I get my Indesign script to apply to all pages in the document?

My (java) script below apply only to the first page of the document. How can I get to apply to all pages in my document? What Miss me? Thank you.

script:

myDocument = app.activeDocument

with (myDocument.pages.item (0) .marginPreferences) {}

columnCount = 1;

columnGutter can be a number or a measurement string.

columnGutter = "0";

low = '0 '.

When document.documentPreferences.facingPages == true,

"left" means inside; means 'right' on the outside.

left = '0 '.

right = "0".

Top = '0 '.

inside = "0".

}

Hello

You can browse all the pages.marginPreferences:

var
  myDocument = app.activeDocument,
  allPagesMaPref = myDocument.pages.everyItem().marginPreferences,
  curPageMaPref;

while ( curPageMaPref = allPagesMaPref.pop() )
  with (curPageMaPref) {
  columnCount = 1;
  //columnGutter can be a number or a measurement string.
  columnGutter = "0";
  bottom = "0"
  //When document.documentPreferences.facingPages == true,
  //"left" means inside; "right" means outside.
  left = "40"
  right = "0"
  top = "0"
  inside = "0"
  }

Jarek

Tags: InDesign

Similar Questions

  • Can I get an imagefield to fill images on all pages once the image is uploaded

    Hello

    I'm fairly new to LC and I have a dynamic long form from scratch. This form will be used by sales, which will be

    'configure' services, taxes ect to be on the form, then send it to the applicant to be filled. I wish that our sales representative to be able to upload an image to a field of the image (logo) and this logo to be displayed at the top of each page. As I can't seem to add an image field action, how can I do? Million thanks in advance!

    They do not have access to the page master - the master page is what the form is built on, where you set your margins, setting page, boilerplate info, etc.

    You could also have a field of the image on the first page and the image of the field where else you need them and use the global binding to share the same data - for global binding to work they must have the same name and then on the object > link set palette data binding to use global data.

    Or you could code with the rawValue: imageField2.rawValue = imageField1.rawValue;

  • InDesign CS5 and CS5.5, how can we get a large amount of text in MS Word in the pages?

    InDesign CS5 and CS5.5, how can we get a large amount of text in MS Word in the pages?

    I'm just looking to get started.

    It's easy to get a small amount of text - I am using simple methods of "copy / paste" but I have a document which is over 70 pages in size.

    I have it in MS Word format and PDF format and are seeking to use either format (not both)

    Please can someone help me?

    Terry

    File > Place. Go to the Word file.

    Shift + click on the page of your document.

    Bob

  • How can I get rid of a message asking to £100 while surfing the web?

    How can I get rid of a message asking to £100 while surfing the web?

    It's a pop-up. You will need to clear your history of navigation via settings > Safari > clear the history and data from the Web site.

    Since this is a pop up you can just avoid going on the site that caused it uh... pop up! That or just keep delete your history when it arrives.

  • How can I get Firefox saves my my hotmail MSN live login and the password

    How can I get Firefox saves my my hotmail MSN live login and the password,.
    My settings are all correct and must be saving them, but for some reason that it is the only account that it won't save.

    Hello

    1. what version of Firefox are you using?

    I would recommend that you follow the steps in this article.

    http://support.Mozilla.com/en-us/KB/make-Firefox-remember-usernames-and-passwords

  • HOW CAN I GET A HP LASERJET 4V IN ORDER TO PROPERLY USE THE OPERATING SYSTEM TO XP PRO AND USB USING A PARALLEL CABLE?

    HOW CAN I GET A HP LASERJET 4V IN ORDER TO PROPERLY USE THE OPERATING SYSTEM TO XP PRO AND USB USING A PARALLEL CABLE?

    The printer works at all with this cable?

    The cable has recognized and installed by Windows XP when you logged on to the computer?

    If the cable has been recognized, what steps have you taken to install the printer then (be as accurate and complete as possible)?

    You get an error message?  If so, please provide, without paraphrasing.

    This printer has already been installed on this computer?  If so, with what type of connection?

    And especially, what is the brand and model of the USB to parallel cable?  Many of them do not work.  See, for example, the comments here , which suggests that 25% of the units will simply not work.  This seems to be one of these products you should buy at a local store, rather than on the Internet, then you can continue taking it back until you get a working unit.

  • I can't find my code redemption cs6 and I just bought a new computer because my old one no longer works. How can I get my photoshop on this computer? All my products are registerd with a serial number

    I can't find my code redemption cs6 and I just bought a new computer because my old one no longer works. How can I get my photoshop on this computer? All my products are registerd with a serial number

    For CS and CS2 activation servers stopped working and have been taken down. You will need to take a look at this link for your question: https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml

    Benjamin

  • How can I get a google font (Capriola) in Muse. I pasted the code in the head of html, but the police will not be displayed. Can anyone help with teamviewer?

    How can I get a google font (Capriola) in Muse. I pasted the code in the head of html, but the police will not be displayed. Can anyone help with teamviewer?

    This is kind of a hack, but it will work.

    1. you will need to download a copy of the Capriola on your computer and install it as a system font. Google Fonts will allow you to install it as a system font in some methods (download a.) (ZIP file, synchronization with SkyFonts or downloadable on the project in Google Code). Edit: the simplest is to add the font to your collection of fonts in Google and then download one. ZIP file of your font collection.

    2. the font squirrel website has a generator of quality web fonts. It may take a font installed on your computer system and generate all the files of web fonts needed him. Place the web font files in the folder of your Muse project where you want to store the web fonts self-hosted. Use the add web fonts in Muse and select the tab fonts self-hosted.

    IMPORTANT: Please read the license terms for any font that you want to use on your website. Fonts Open source as Capriola may seem safe to use at first, but the developer of fonts may have some requirements, such as the display of a link to their web site somewhere in your own site. Other fonts may have monthly limit on number of pages seen.

  • How can I get Lightroom to find photos on a USB key when the drive letter changes?

    This is probably a simple question, but I keep getting stuck.  I have ha

    ve my catalog and some pictures on my laptop hard drive, but most are on

    an external USB drive.  Sometoimes the car is affected

    E:, F.; or G: and when it cahnges, the catalog says the photos are missing.  How can I get

    Lightroom for photos?

    Tom Barnwell

    The quick solution is to click on the folder that contains the missing files and choose "update folder location" and then search for the file on the USB drive. The longer term and fix, you must apply is to configure Windows to always give the same drive letter USB. You can do this through the XP disk management application in the management of the computer (the control panel applet). The following screenshot is for XP and Vista and Win 7 will be something similar which is accessed via the administrative tools (see second screenshot).

  • How can I get rid of BBC iPlayer signals multiple, all with the same content?

    How can I get rid of several BBC iPlayer stream? I have 3 all with the same content.

    This has happened

    Each time Firefox opened

    == I don't know

    See How can I delete a bookmark?

  • How can I get my diagnosis Sevice policy running after being stoped in the Microsoft Management Console (MMC) console?

    Services in my MMC (Microsoft Management Console) has been tampered with and now services such as Diagnostic Policy Service left running. I tried everything I know to do and I'm still stuck. How can I get my Diagnostic Policy Service is running again?

    Hi sabraneal,

    ·         What version of the operating system is installed on the computer?

    ·         Have what troubleshooting measures you tried?

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Follow these steps:

    (a) click Start, type services in the search box of start and press to enter.

    (b) scroll down and select the Diagnostic Policy Service.

    (c) double click and start the service.

    Method 2: Scan the file system (CFS) auditor to repair corrupted files.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

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

    Method 3: Also check if the computer is in normal startup mode. Follow these steps:

    one), click on Start, run and type msconfig then press on enter.

    (b) on the general tab , the startup selection should be the normal startup mode.

    (c) click on apply and OK.

    (d) restart the system.

  • How can I get rid of yhe blue circle cursor all about

    How can I get rid of the blue circle around my cursor

    Hello barryblondell,

    Thank you for the question!

    It is disheartening to know that have problems you with the mouse cursor. As I understand it, you want to get rid of the blue circle that appears around the cursor.

    I need to ask you some questions to help you best.

    1. When is the blue circle appear around the cursor?

    2. were there any changes (hardware or software) to the computer before the show?

    Good day!

  • How can I get rid of what looks like a soccer ball on the screen?

    When I move the cursor upwards or downwards, a small icon that looks like a soccer ball that appears on the screen and its function is to scroll the screen at lightning speed. It brings me to tears. How can I get rid of him?

    I'm terribly sorry. This problem was not the work of Windows, but it is rather a problem of Mozilla Firefox. The small circle with a dot in the middle (it looks like a ball of soccer at first glance) is because of the "scroll" of Firefox feature. If you are in a browser window and you move the wheel mouse this little circle appears and before you can blink, you are at the top or bottom of the page. Very annoying.

    In any case, for those who have this problem: in the Firefox browser, click on tools, Options, advanced options, and under navigation, clear "use autoscrolling".

  • How can I get sql developer Version 4.0.3.16 to read the ldap.ora file

    I select LDAP as the connection Type and you can enter the address of the LDAP server and charges at the end of everything.

    How can I get developer sql to load servers directly from the file ldap.ora.

    Question may be closed due to problem being that developer sql through customer install ODAC.  Once the complete installation of the client has been applied, everything was fine.

  • How can I get files mp4 video to appear in genres other than the kind of 'The other' in Windows Media Center?

    Hello

    I have mp4 video files that I can't to the list under the genres that I want to do in Windows Media Center.

    I have the list of the kind I want them to appear as in the Details section on the right of the video click, but in the movies section, they appear under the type 'other '? Why?

    Do I need a '. '. XML data file"to make it work?

    I noticed all movie files that can take the date meta online have 2 to 3 "." XML files"in their records. These video files appear under the genres as they should.

    I tried to make one. XML file for the video files that can't dry meta data online but they always appear under 'Other' type only.

    I need more than 1. XML meta data file? If I do what they are and how can I do it myself?

    Can someone lead me to a site that explains how all the. Meta data files XML that I need to make this work.

    Thank you

    John

    Hello

    I did a long time ago and it does not help.

    However, I found a solution.

    'Master Media Center' (free version of the program) will download the XML MetaData files and place them in the folder of video/film. This will force even make a MetaData XML file if it cannot find anything online.

    Apparently, Windows Media Center uses XML files to determine what kinds of display movies under.

    Without a metadata file XML Media Center will put the video file in the type 'Other' even if you wrote a kind under details.

    Now, if I can get my Windows Media Center to stop crashing when I open "Movies!

    John

Maybe you are looking for

  • 2130: e-mail scaning

    Can you recommend a package of e-mail which will allow me to scan directly to him with my new all-in-one printer to 2130. Thank you

  • complete the loop and get data

    I need to acquire the acquisition values of data every x seconds. Waiting in the loop of data acquisition is defined so that the next N samples are acquired after x seconds. Pressing stop the loop of consumer DAQ stops after the sec x which is connec

  • Return the focus to the main window of VI

    In fact, the scenario is a little more complicated than what is described. There is a main VI has a user interface that uses a Structure of the event to capture / process the events of the operator.  This same main VI also called live dynamic.  One o

  • How can I put music on my RIM BlackBerry Curve 8310 Smartphone

    How can I put music on my blackberry 8310?

  • Hts723216L9sa60 blue screen Hitachi on T500

    I get random - I don't remember when I had vista 32 - the message usually says ' disable Defrag, antivirus, run chkdsk (I run chkdsk). with the hard disk drivers, must he for? I downloaded the iso firmware update - run but the problem persists