[JS][CS3] Change "Start Peg Numbering at:""

Hello,
I have a big problem on many InDesign Books with approx. 158 files each. In fact I have cut the InDesign files of approx. 400 pages in 158 files with 2 or 4 pages each but when I cut my reference document it was configured with "Start Page Numbering at:" set to "1."
Now I have 158 files with this option ("Start Page Numbering at:" set to "1."), my question it is possible by a script to change all the files of the book with the "Automatic Page Numbering" option selected, as is "Continue from Previous Document in the Book."
With a such script I will win a lot of time on this operation and I'm not motivated to do this file by file.
Thanks

Here you are. Works on CS.
if (app.books.length != 1)
  alert ("Slow Reader Alert!\nI can only work on one book at a time.");
  exit(0);
for (doc=0; doc<app.books[0].bookContents.length; doc++)
  a_document = app.open (app.books[0].bookContents[doc].fullName);
  a_document.sections[0].continueNumbering = true;
  a_document.close(SaveOptions.YES);
It's really straightforward. Line by line:
You can have zero, or more than one book open. For simplicity, this script works on one and only one opened book.
Eh. Group brace.
Well. Speaks for itself.
All done, bye bye.
.. another group brace. This is going slower than I thought.
Ah! A book contains an array objects of type "BookContent", which holds file name, creation date, and status (i.e., if the document needs updating). Its length is equal to the number of documents in the book, one per file.
.. group brace ..
(snore) oh, sorry. "Open this document". Yep.
All documents have at least one section; the first is hardcoded to start at the first page. Since this is Javascript, it's section #0. The 'continueNumbering' is just a boolean value, yes or no: "If true, continues page numbers sequentially from the previous section."
Close, save when necessary. This just means that if the document was not changed (because the numbering was allright), it won't be saved, just as in the user interface.
Finally, the final closing brace.
That's it.
Really.
(I could go on all day, y'know...)

Similar Messages

  • Change Start page numbering to Auto Page numbering in the Numbering & Section Options using script

    1.  I have many documents to add into a book. After adding the documents, all file page numbers should be continued from the previous file. Now I am doing manually for all files at all time. Numbering & Section Options => Start Page Numbering at: to Automatic Page Numbering.
    2. And also I need to add the Chapter number with the page number (Ex: 1/2, 1/3, 1/4 … , 2/2, 2/3, 2/4 …., 3/2, 3/3, 3/4 ….). Here also I am doing manually like.  Numbering & Section Options => Page Numbering => Section Prefix: 1 and Include Prefix When Numbering Pages. (The page number should start from 2).
    Note: In Every chapter opening there will be a file name called S… (Ex: Ch 1: S3391.indd, Ch 2: S3392.indd, Ch 3: S3393.indd). So after every S(S3391, S3392 …) file the next file page number should starts from 1/2, 1/3. 2/2, 2/2 ….
    Ex:
    Chapter 1          Pages
    S3391.indd     
    32457.indd       1/2  … 1/5
    32617.indd       1/6 ….. 1/9
    32217.indd       1/10 … 1/13
    Chapter 2
    S3392.indd
    42457.indd       2/2  … 2/3
    52617.indd       2/4 ….. 2/9
    33217.indd       2/10 … 2/13
    Could anyone give me an idea or script, please? At least for First one, could anyone suggest me ASAP.
    P.S: I have some more questions regarding this, I will post that after some time...
    Thanks in Advance,
    Thiru

    var openedDocs = app.documents;
    var chapterPrefix = prompt ("Enter the chapter prefix", "1/", "Prefix");
    for (var doc=0; doc<openedDocs.length; doc++){
        openedDocs[doc].sections[0].continueNumbering = true;
        openedDocs[doc].sections[0].sectionPrefix = chapterPrefix;
        openedDocs[doc].sections[0].includeSectionPrefix = true;
    alert("Done");
    Chapter 1, contains 10 files (Each file 6 pages)… (1/1, 1/2, … 1/60) – prefix 1
    Open all 10 files of one chapter and run it....
    and then for another 10 files....

  • My phone has changed from the numbered keypad to the large lettered keyboard.  When I enter my 6 digit passcode it tells me I'm wrong.  I've tried about 6 times and don't want to get locked out.  It just started today??? Please help.

    My phone has changed from the numbered keypad to the large lettered keyboard.  When I enter my 6 digit passcode it tells me I'm wrong.  I've tried about 6 times and don't want to get locked out.  It just started today??? Please help.

    carolinechx wrote:
    i know the description may be a little bit too confusing
    Mostly because you are not using any capital letters or paragraph returns and your post is difficult to read.

  • Start page numbering at 0

    hello,
    i've got a document with several sections. each section starts with a divider. the desired numbering is 1.0, 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, etc. the x.0 page is the divider page for that section. the prefixes are easy, but i can't  use 0 to start the numbering. i can manually change the number, but when a pdf is made, the page numbering is wrong. any suggestions? thank you, a

    Well I never!
    Sorry, I should have tested, but I didn't have time, so I thought I may
    as well propose an answer...
    I've always wondered why Adobe thought have a "previous page number" was
    an important feature -- based on my misunderstanding.
    Well, you learn something new every day (though I don't know if such an
    ephemeral fact as a feature in a piece of software counts)!
    Ariel

  • Batch Change - start title number later

    I really like using the Batch Change feature to change the title of a group of photos to "Trip 01 - " etc. and in the past this has been a great way to put "Trip" (or whatever word) in the title and then have a different number for each photo prior to adding details. But, currently I am halfway through a trip and have imported many photos, and realized that when I take more pictures and import them later on I do not know how to batch change them to restart the numbering. For example, let's say I have 200 photos. The first 200 will come out as "Trip 001", "Trip 002" ... "Trip 200" but then when I import more photos and do batch change the new photos will be renamed starting with "Trip 001" whereas I want them to start at "Trip 201" to continue the prior set of numbers. Is there any way to accomplish this?
    The reason I would like to start the numbering from a later number rather than redoing all of them is that following the number I add details. It is not just "Trip 001" but rather "Trip 001 - building x" and if I were to renumber all of them then I would lose the details of the titles that I had already edited.
    Any ideas on doing this would be most welcome! Thanks

    In the View menu select Titles as one of the entities to display under the thumbnail. That should display the new titles. The Info window only shows the file name. Changing the title does not change the file name. To get the file name changed you'll have to export the files with the option to use the title as the file name selected.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How do you start endnote numbering over in each section?

    How do you start endnote numbering over in each section?

    Breaking the threads between sections won't help you, since the endnotes
    and the endnote references in the text are completely static, regular
    text. (However, if this is a long document, breaking the thread between
    sections/chapters can significantly speed up InDesign, and it's one of
    the first things I do when working on long docs.)
    Now, presumably your endnotes references in the text have a character
    style applied to them? Likewise, hopefully your endnote references at
    the beginning of each endnote also have a character style applied to
    them? If not, the first thing to do is apply a char style to these (make
    2 styles -- one for the refs in text, the other for the numbers at start
    of endnotes).
    Next, is to find a script that can do maths based on a character style.
    Must be one around somewhere...  ... yup, here
    you go:
    http://indesignsecrets.com/free-script-to-change-all-numbers-in-a-document-using-math.php
    So, now you just need to run the script, figure out how much to subtract
    from each character style for each section so that the first note is 1,
    and Bob's your uncle.

  • How do i change my telephone numbers keeps asking for a valid one??

    how do i change my telephone numbers keeps asking for a valid one??

    If you simply chose the wrong phone number setting Messages up on the iMac you just go back into it's settings and choose the right number.
    If your iPhone number is not showing up under the preferences for Messages and FaceTime on your iMac you are logged into the wrong Apple ID on the iMac or your iPhone is not registered to that ID. With the info you give it sounds like you have multiple users using the same Apple ID in which you would have multiple phone numbers listed under the preferences on the iMac and iPhone.
    I have found iCloud, Messages and Factime are easiest setup as each user having their own Apple ID. That's not to say it is impossible for multiple users to use one Apple ID. First you have to sign into the Apple ID on your iPhone which will register the number to that account. Set your iPhone's Messages and Facetime Settings to use it's phone number for send and receive. Then it should appear when you are trying to setup Messages on the iMac. Each user using the same Apple ID will have to be using their own numbers or email address so you may have to have other users uncheck your number. The problem with this setup is it is easy for others to start receiving your messages.

  • My wife and I want to swap her 4s for my 4 while a take a short trip out of the country.  We use the same email address for itunes but different for email.  Can we just change our phone numbers and email addresses so we get our own messages?

    My wife and I want to swap her iphone 4s for my iphone 4 while I take a short trip out of the country.  We use the same itunes account but have different email accounts.  Can we just change our phone numbers with our carrier and change email addresses on our phones so we get correct messages, with out disturbing our other apps?

    The email is simple. Just delete her email acoount on her iPhone and configure your account into the phone and then do the same for her on your phone.
    The harder issue is that to switch the cellular phone service you will need to switch the SIM cards and the two phones do not use the same size SIM card.

  • Is there a way to change the image numbers in a file in Aperture?

    Is there a way to change the image numbers in a file in Aperture? We shoot with two photographers and so the img numbers are not in order but I would like to have the photos in chronological order on the disc when I give it to them. Does anyone know how to do this? I have them all in order ready to go in Aperture but when I move them to the disc to be burned they default back to the img number order. Thanks for your help!

    What do you mean by "image number"? The file names like "IMG_7822.CR2" or "IMG_7822.jpg"?
    You can create custom names with appended numbers, when you export your image files to be saved on a disk.
    Sort your images by date in the browser, select them, then use the command "File > Export > Version" to write the files to the disk. Set the name format to "Custem Name with Index" or "Custom Name with Counter" to create numbered names in your current sort order.
    Regards
    Léonie

  • How to change start date in IT0088.

    Hi All,
    I am not able to change start date of IT0088(maternity).
    Record was maintained from 01.01.2014 to 31.12.9999. Now I need to change from 10.01.2014 to 31.12.9999.
    When try to change the record I am facing Changes across Tax year can only extended the validity period".
    Could you please advice me how to changes.
    Regards
    AB

    In which activity type you are trying to change the display name ?
    Have you checked the field property to verify that the field is locked by any other person ?
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • How do I change all the numbers in my IP address?

    When I hit IP address release and then IP address renew it just changes like 3 numbers and I want to change all the numbers.

    the question itself is confusing...
    are you talking about changing the whole IP segment?
    Just the IP address of your computer?
    Assigning an IP address plays a BIG role in networking...
    hope you give more info to your question...
    Yesterday is history. Tomorrow is mystery. Today is a gift.

  • When I start up numbers an old version 2.3 fires up but when I go to update its say I have the latest version

    when I start up numbers an old version 2.3 fires up but when I go to update its say I have the latest version

    Try and force iPad into Recovery Mode:
    1. Turn off iPad
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • Change start of cycle date in maintenance plan

    Dear Experts,
    We would like to change start of cycle date in maintenance plan. Iwe have rescheduled the plan but the start of cycle date remains the same.
    could you please confirm, whether it can be changed. The requirement is because of some Mt plan created with future start date in production (Year-2020) and we want to correct the same.
    Thanks

    Don,
    To determine the next maintenance call date you need to tell the system when the last maintenance call occured
    Example:
    You want the next call date on the 1 June based on a six month cycle. Therefore the last maintenance date would have been 1 January (assuming key date scheduling).
    In your case you need to RESTART your single-cycle plan on the 1 January and the system then calculates the next maintenance calls.
    PeteA

  • Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    The date information is taken from the camera which writes it to the file. This needs to be set to the correct date and time in the camera itself.
    The order the images are shown in the Library mode is set by clicking on the sort button in the tool bar, which if not showing can be activated from view, tool bar. There are different sort orders that can be applied including sorting by file name. You can also sort by dragging the images to the order you wish them to appear in by selecting user order.

  • How do I change from Arabic numbers?

    How do I change from Arabic numbers?

    It depends where you what to change them. Two ways are to add a new keyboard or to change the region format.

Maybe you are looking for

  • Problem with preloader in Cs5 with AS2

    Hey, I made a preloader in Cs5 with AS2 code: mask_mc._height = 1; this.onEnterFrame = function():Void var loading :Number = this.getBytesLoaded(); var total :Number = this.getBytesTotal(); var precent:Number = Math.round(loading/total*100); mask_mc.

  • Database connection using code in IDE

    Anybody there please help me. I cannot connect to my database from within the Java Sun One Studio 5 IDE. This situation also happens in the Enterprise Edition; I cannot connect to the oracle database from within the IDE using code. Please can someone

  • Using JSF in search engine.

    Hi, I am implementing a search engine. I want to use jsf for for the UI part. I have few queries in this regard. - Has anybody used jsf for the same? - Since the search result may contain any number of result, then it is not good to first load all th

  • Cannot view files from utube.

    When on utube, I cant view movies or video. Says I need to download new version of adobe flash player. But I have downloaded current version. But still cant view videos.

  • Hi, is it possible to play music while my iphone locked

    Hi, is it possible to play music while my iphone locked