Loop for stop the iteration to the first page

I have a loop to apply a paragraph style, but it stops the iteration to the first page of the document.

I need to apply the style to all of the document... can not understand why it does not work.

Here is my script:

myDocument var = app.activeDocument;

var myParagraphStyle = myDocument.paragraphStyles.item ("paragraph Style");

myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .appliedParagraphStyle = myParagraphStyle;
paragraphs var = myDocument.pages.item (0).textFrames.item (0) .paragraphs

for (i = 0; i < paragraphs.length; i ++)
{
var point = paragraphs.item (i)

paragraph.applyParagraphStyle (myParagraphStyle, true);
}

Thank you

Thanks, I've cleaned up the script, but it always stops after the first page.

Yes, because you talk to paragraphs in a (first) special textFrame and not to the story.

You must change your third line or replace it with that:

var  myParagraphs = myDocument.pages.item(0).textFrames.item(0).parentStory.paragraphs;

Tags: InDesign

Similar Questions

  • Create a table in a loop 'for' (reset the number of loops)

    Hello

    I try to incorporate a signal of acceleration from an analog input CRIO to get speed and then further integrate to get the moving of a vibration system.

    I understand that to achieve integration, a table must be fed in. My problem is that I could not buffer the signal in a buffer block, as I couldn't find buffer blocks. so I decided to create my data table by using a loop "for". The nests of the loop 'for' inside a timed loop. The problem that I'm stuck on is how to reset the loop 'for' in order to fill the buffer with each iteration of the outer loop timed.

    I enclose the code if that helps. Note that I use labview in 2013.

    If anyone who has encountered a similar problem before can help me, I would be gratefull.

    Concerning

    Ali

    You can use a shift register initialized as inputs to your curls, to build your table of one. However, you realize, don't you, that the execution of your program as written loops as soon as the computer can spit out responses, then the output array may contain several points that took place before the entry has updated? Assuming that your thing cRIO (I've not worked with these) has integrated into its routine acquisition of calendar data, I suggest you put that inside the loop to get a data point by reading.

    And do you really want your graph to distance for update only every thousand points (points of acceleration million) speed?

    Cameron

  • search for google to firefox 3.6.6 Windows 7 freezes on the first page

    FIREFOX 3.6.6 FREEEZEZ ON THE FIRST GOOGLE SEARCH PAGE

    Dear Mozilla,

    From the last update to the 3.6.6 when looking for something in GOOGLE the
    Firefox will take you to the first page of search. Any attempt to click
    on any other page or the results of arrow 'next' in a small box that appears
    When you're clicking, then basically nothing.

    That's all you get. The web address of the next search page appears in
    the address bar, but the page never appears... Firefox lets you sit
    a page.

    If you press the 'Refresh' icon of the browser will move to another
    Indicated page but then it's all new.
    Help!
    I drove bacl version 3.5.6 but it keeps always product, suggesting that my registry is corrupt with respect to Mozilla.
    Thank you
    Bill

    URL of affected sites

    http://Google.com

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)


  • HP M602: M602 takes a long time for the first page of the printer

    I have a M602 when you send a print job, it takes 2 t o 3 minutes for the first page to print.  The following pages and then slowly but surely print.  The next print job then begins the same cycle.

    We had one where I work where it is one of the complaints and a firmware update seems to make a difference.

    Firmware update also tackle the problems of security and they are free.

    Firmware upgrade is found in the software section and drivers from the support page for your printer on hp.com.

    If my post is solved your problem and click the accepted as button solution under him.

    In order to thank a Tech for a post click the thumbs up button under the post.

    You can even click on the two keys...

  • Cannot use Select inside the loop For inside the SCTL (FPGA) - Bug? An alternative?

    When I put a Select statement inside a loop in a loop of Timed Cycle in LabVIEW FPGA, I get the following error when I try to compile:

    "An internal software error occurred. Please contact National Instruments technical support on ni.com/support with the following information:

    Error-61003 occurred at

    Possible reasons:

    LabVIEW FPGA: you cannot include this function in a loop For when the loop is within a single cycle timed loop. »

    I didn't know that whatever it is documented that says that this is not allowed; is this a bug or am I missing some documents?

    The code that causes this error looks like this, inside a SCTL (ignore Boolean wire wandering behind the loop for)

    I came up with the code below instead, which compiles into one Cycle timed loop, but it is a bit ugly. Does anyone have a better suggestion?

    This issue is currently followed under the CAR # 592391. Please keep an eye on our patches and new versions as usual!

  • When you buy an extended image lisence adobe stock can I use it as the back ground for a mail announcing who will be on the first page of my business profitable online store?

    When you buy an extended image lisence adobe stock can I use it as the back ground for a mail announcing who will be on the first page of my business profitable online store?

    Adobe Stock license allows you to use your assets anywhere in the world, and the license never expires. You can use the assets, in print, presentations, Web sites and even on social media sites. However, you may not distribute digital assets by posting it online or in any other way that would leave other people to use the assets without permission it is.

    from there:

    Royalty-free images, pictures and graphics. Adobe Stock

  • Calculation for cutting the first part of the string in the Manager list item values

    Hello

    Please help me with a calculation after submit pl/sql function process for cutting the first part of the string (CQ.) within the values of list manager. For example the list manager support contains values such as

    CQ... SAMPLE1... TEST1

    CQ... SAMPLE2... TEST2

    CQ... SAMPLE1... TEST2

    The calculation process should cut the first part(CQ..) and must return to the list of values of Manager as

    SAMPLE1... TEST1

    SAMPLE2... TEST2

    SAMPLE1... TEST2

    Oracle APEX 4.0.2 is the version and Oracle 10 g r2 is the database.

    Please help me with possible approaches in the development of the service. Thanks in advance.

    Thank you

    Orton

    orton607 wrote:

    But when I insert/update Manager list item values I don't want the first part of the string in the database.

    I still don't understand why you can't change the LOV or create a new...

    The LOV should be:

    SELECT original_value  AS HUMAN_SEES_THIS_VALUE
        ,LTRIM (SUBSTR ( original_value, INSTR (original_value, '..') + 2))
          AS DATABASE_GETS_THIS_VALUE
    FROM (
      -- place original SQL for LOV here
    )
    
  • Header/footer for the first page only

    Hi all

    Is it possible to have headers/footers with option, first page only? The current options are

    • Not first
    • Only in the last
    • Not last
    • Back only
    • In front only

    Is it possible to have 'first only?

    We use Documaker Studio 12.3. Thank you.

    I think that if you want a header, footer on the first page only, which means that you should not use the copy on overflow attribute. Then those who would only be on this first page.

  • The page numbers in the first page must not appear

    Hello

    I have a layout unique and for loop, I used @section

    Problem is that I have to print the second page numbers. First page should be different. I kniw there is an option called "First PAge" different, but it applies only when we have several pages in the rtf during compilation. not at the time where it generates more than one page.

    Please help as it is very urgent for me to deliver the object.

    Thanks in advance!

    Just pass the numbering of the pages on the first page of output, using "different first page".
    Neednt you have @section for this purpose.
    delete and use @section instead you want to just have a page break before each group.

    @section as well as "Different first page", will be applied to the first page of each section.

  • Boxes (with the exception of the first page of comments) YouTube comments are insensitive/gray. Google have not responded to my request, can advise you please?

    Boxes (with the exception of the first page of comments) YouTube comments are insensitive/gray. Google have not responded to my request, can advise you please? Running Ff in "Safe Mode" makes no difference, or reload the page.
    The URL is just one example, the first series of observations, I can meet next & following I can't.

    Thanks for your help,
    Dick Holman
    [email protected]

    p.s. I can sometimes get the comment boxes to work if I allow third party cookies.

  • The action of the button Back/will not return to the first page open on a tab

    From a few weeks ago (I believe that when 3.6.16 is released), I lost the ability to return to the first Web site loaded on any tab by using the previous button or right click-> menu back.

    I upgraded to Firefox 4 and I still see the same question.

    This happens if the new tab is created from a link on another tab of an item in my toolbar bookmarks, or if I have on a button open new tab, then the initial Web page in the address bar or in my bookmarks toolbar.

    When I navigate to the second site in this tab via a link, manual entry or a bookmark, the previous button is active.

    If I navigate to other pages and a right click on the back button, the first page I have loaded is not listed in the history.

    It is possible to my modules or something is causing this issue? I can't think of any possible configuration setting that would entail.

    If not, should I submit a report in Bugzilla? I couldn't find a corresponding bug report, but it seems that it would have been stated several times if someone else saw this question.

    Edited to stop scrolling - Maurane

    With the back button does not, problems are caused by the McAfee Site Advisor, if you uninstall or disable this extension, the back button should work again.

  • Start numbering pages on other than to the first page

    I'm on a 2009 MacBook Pro, Yosemite 10.10.5, with Pages 5.6.1

    As a novelist, I start each document with a title page, followed a warning of fiction page. The real story starts on page three.

    I need to start my pagination with 'Page 1' on page three, but have been unable to find a way. [It was so simple in Word...]

    You will have a separate section for your title page, your warning of fiction page, and then a third section to start numbering pages at 1.

    When you insert a page number in section 3, it will be to see the 3 pages. You visit the toolbar of the Document element and select the tab of the Section from it. On the tab of the Section you want to uncheck Hide on the first page of the article if it is checked and in the numbering of the Page, uncheck the box continue on the previous article and set at: 1.

  • I want a fax confirmation showing the first page of the fax

    When I have something fax above, I get a fax confirmation indicating that the fax was sent.  I'm looking to capture the first page of the image with this fax confirmation.  I was able to do it on my other officejet pro 8600 all in one, but now I am unable to do it with this replaced machine which was covered by my warranty.

    Hi rubenm,

    I understand that you have a 8600 Officejet you wish to turn on the image for the fax confirmation report. I'd be happy to help you with this.

    I must say though, it was frisk me throughout this menu from the printer! What you need to do is:

    1. Press (right arrow) and then press Setup.

    2. press on the Fax Menu (can say Fax Setup)
    3. press on the reports of fax and then touch Fax of Confirmation.
    4. tap on (fax) or we (send and receive).
    5. press on the Fax Confirmation with the image.

    Then when you get a Fax Confirmation it should the page it should have this small image of the first page.

    Hope this helps, have a nice day!

  • OE print cut 2 inches to the right on the first page

    OE6 in XP.  When printing, the right to 2 inches from the first page is cut off.  Checked margin setting in IE, they are all set to 0.75.

    Hello

    1. have you made changes on the computer recently?

    2. How is like print preview?

    3 is this problem limited to Microsoft Outlook Express?

    Method 1.
    Check if you can print successfully in the boot. Maybe there is a third party application that is causing the conflict.
    You need to perform a clean boot to find the program that is causing and then disable or remove.

    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us

    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    Method 2.
    Try the procedure described in the articles below and check.

    When you print an e-mail message in Office Outlook 2003 or Outlook Express, the printed message is so small that it is unreadable
    http://support.Microsoft.com/kb/932538

    List of fixes included in Windows XP Service Pack 3
    http://support.Microsoft.com/kb/946480

     Description of an update for the issues that are described in articles 898122, 898123, 898124, and 898125 with Outlook Express 6.0 running on Windows XP
    http://support.Microsoft.com/kb/900930

    I hope this helps.

  • Windows displays only the first page of a multipage document - solutions?

    I recently installed an HP printer on my laptop with the help of a support HP online technician, but only the first page printed - the other eight were empty.

    Also, one-third of the right side of the document (electronic mail) was chopped up, while the leftmost column prints (Windows Live/Hotmail/Hotmail address) in the full preview and printing is not available since I upgraded to IE8 on my laptop HP under Vista Home Premium.

    How do I Center this document so that it will print correctly, and can I add the "Print preview" option in my Google toolbar, or install an another toolbar that includes?

    Thank you!

    http://welcome.HP.com/country/us/en/support_task.html

    Go to the above link > 'See support and troubleshooting information' > key in your number of printer > there is the use of manuals there.

    For more information, contact HP:

    http://welcome.HP.com/country/us/en/contact_us.html

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Right-click menu navigation that gives?

    These past few days Firefox has been giving me a menu when I right click. It is a large menu with navigation options (forward, backward, charging, bookmark). I don't like it and want to get out and go back to what it was. =/

  • Update the driver for graphics card for Satellite M30x

    I need to update the video card driver in my Satellite M30X (ATI mobility Radeon 9600/9700). Where can I find the latest version? On the toshiba support page, there is only an older version (dic.2004). I already tried to install a feeding at ATI.com

  • Qosmio F30 - manual says max RAM is 2 GB

    I see that other members of the forum have improved their F30 to 4 GB of RAM. However, the manual indicates the recognized maximum memory (page 20 in mine), is only 2 GB. Even if the F30 can recognize 4 GB of RAM if necessary he may not be able use i

  • HP Smart Print 2.1 and IE10 does not

    Currently have Windows 7 (x 64) SP1 home edition.  Recently updated IE9, IE10 for Windows 7 (without contact).  My HP Smart Print 2.1 worked perfectly in IE9.  It stop working when I upgraded to IE10.  I uninstalled and reinstalled several times HP S

  • ObjectChoiceField customized for beautiful

    We know the value default ObjectChoiceField looks like not very good in BB, so I want to create a new ObjectChoiceField custom, the sample image is as below: Who can tell me how to implement this, the default list of ObjectChoiceField, which we canno