Count words, but not in master pages...

With this:
var docWordCount = app.documents.everyItem().stories.everyItem().words.length; // words
... I count the words of all open documents.
But how I can exclude the master pages?
Thanks in advance ...!

Well, I think I got what I wanted:
var wMasters = app.documents.everyItem().masterSpreads.everyItem().textFrames.everyItem().words.length;var docWordCount = app.documents.everyItem().stories.everyItem().words.length; // words
var myDocWordCount = docWordCount - wMasters;

Similar Messages

  • Sidehead: want on L/R master pages but not other master pages

    Hello!
    I've been fighting this all evening and can't seem to get it to work. I would like to have room for a sidehead on my L/R pages in my facing page document but I would like my master page "First Page of Chapter" to not have a sidehead: I would like the text on that one page to span the entire width of the text frame.
    When I try to set this up, however, the first page of chapter has the sidehead, even though it its text frame doesn't appear to have a sidehead when I view its master page.
    What's odd is that the master page sidehead area isn't even the same size as the sidehead that's appearing on the L/R pages, it's much wider.
    Can someone tell me the process for not allowing room for a sidehead on the first page of the chapter (with the "First Page of Chapter" master page) but having sideheads on the subsequent pages that belong to the L/R master pages?
    Many thanks!

    Rocky,
    To add a maybe unnecessary level of detail, the side-head area is a flow level property. Separate text flows within a document may have separate settings, but normally you would not want to have separate text flows.
    Apart from using special paragraph formats, as Arnis mentioned, you could also make the text frame on your title master page wider and move it to the left side possible a little bit off the page, so the main column is positioned as you wnat/like/need it.
    - Michael

  • I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page, but not all or pages 1-5.  Can this be overcome?

    I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page only, but not all or pages 1-5.  I need to go to the next subsequent page and command to print current page; continuing with this procedure until all pages are printed one at a time. Can this be overcome?

    You can use printPages(1, 5), however I need to know how you print current page.

  • I want to add a Facebook widget, it shows in the coding but not on the page in live view?

    I'm a learning dreamweaver user. So I wanted to add a Facebook like button and followed a tutorial on widgets. However, when I insert the widget it shows up in coding in split view but not my actual page. I've tried uploading it and it still wouldn't work??? Any help will be greatly appreciated!

    The script is wrong. Try this:
    document.write ('<iframe src="http://www.facebook.com/widgets/like.php?locale=en_US&href=https://www.facebook.com/pages/ Lil-Bulldog-World/208706725876140&layout=standard&show_faces=true&width=450&height=150&act ion=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; border-color:#ffffff; overflow:hidden; width:450; height:150"></iframe>');
    However, you'd better use Facebook's own code. It's very simple: http://developers.facebook.com/docs/reference/plugins/like/
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • My iPhone 3gs is not able to connect through internet. I have a Airtel wireless at home.Phone connects through wireless but not opens any page or itune or apllications

    My iPhone 3gs is not able to connect through internet. I have a Airtel wireless at home.Phone connects through wireless but not opens any page or itune or applications.

    Hi,
    can you provide a bit more detail, as can you use the 3G network to access the web, and what security is your wireless using?
    Regards
    Ryan

  • I CAN PRINT HP PAGES--- BUT NOT ON LINE PAGES

    I CAN PRINT HP PAGES BUT NOT ON LINE PAGES
    ERROR HAS OCCURRED IN SCRIPT ON THIS PAGE
    ERROR UNSPECIFIED

    Please read this post then provide some details.  What printer model? What operating system? How is the printer connected? 
    What browser are you using? Are you using HP Smart Printing or some similar program?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • ¿Dear Sirs, I can create with "Photoshop Elements 12", a PDF file of several pages?. I can create a "pdf" file, but not of several pages. Thank you

    ¿Dear Sirs,
    I can create with "Photoshop Elements 12", a PDF file of several pages?.
    I can create a "pdf" file, but not of several pages.
    Thank you
    Valentín Uriarte

    This is the Photoshop Elements forum.
    If you are using Acrobat, ask Here:
    Acrobat

  • Link to PowerPoint Specific Slide Works in MS Word but Not Outlook

    I'm running into problems with providing a link to a SharePoint 2010 site via a Outlook email message for people to open a specific slide in a multiple slide PowerPoint .ppsx document.  When clicking on the link in MS Word, it works correctly
    going to the specific slide (slide #18).  The generic hyperlink path is below:
    http://share/programs/Public/Overview.ppsx#18
    When putting a link in Outlook with the same path, an error messages occurs and the PowerPoint does not load with following message in the PowerPoint error box.
    "PowerPoint can't read http://share/programs/Public/Overview.ppsx#18
    If the #18 is removed, the PowerPoint then loads correctly via Hyperlink in Outlook but goes to the first slide.
    I don't understand why it works from MS Word with #18 but not in Outlook.
    Any solutions or ideas?
    Thanks
    Pat 

    Hi, looks like the "#slide number" not working in Outlook. I can reproduce the problem in my environment. I tested it with a local location and it works in Word but not Outlook. Maybe it's by design.
    Flynn

  • Mac 10.6.3 with Firefox 4.0.1: Can print from Word, PDF, Screen Shots, etc.--but not a web page. My Canon MP610 shows correctly as default printer.

    If I use AOL's browser, I can print Web pages. But not from Firefox. Could be this problem began with upgrade to your 4.0.1.

    If I use AOL's browser, I can print Web pages. But not from Firefox. Could be this problem began with upgrade to your 4.0.1.

  • Editable text box on each page, but generated from Master Page?

    I want to create a blank text box that lives on the Master Page so that it shows up on each page in the document, but I then would enter custom text into the field on each page ( or just leave it blank).
    I know, I know, I can do simply copy a text box from one page, and paste in place on all subsequent pages... or set it up once on a page, then just keep duplicating that page... or some other work around. But simple as those work arounds are, I'd just like a blank text box show up automatically on each page as a master page item, then I can enter text as a see fit and not have to do any duplicating tricks. I've looked up a few tutorials, but none solve for my need.
    So I guess the real question is, does InDesign allow the content of a master page text field to be individually edited on the pages of the document itself?

    It's bet to NEVER use the override master page items command since it overrides ALL master items. That's like using a wrecking ball as a flyswatter. And you don't need to put random text in the frame either (especially since you said you don't want to use it on some pages, though it might be best for those if you create another master without the frame). To override any master object hold Cmd (Mac) or Ctrl (Windows) + Shift and click on it with the selection tool.

  • Can I sort Comments by the order they appear on a page (i.e., top to bottom)?  Or can I only sort by page, but not within a page?

    I would like to be able to sort Comments not only by page, but also in the order they fall within a page.  For example, starting at the top of the page and working my way down so I am not jumping all over the page.  Is there such an option?

    Inspector > Document > Document Margins
    The word is border. Boarders are the Harry Potters of this world.
    Peter

  • RH 10: not use Master Page in Printed Docs

    I have a Master Page set up with a company logo and horizontal rules, which works great with the help topics. The problem occurs when I generate printed docs from the source files.
    Everything else works well enough to get by (I have some tweaking to do), BUT every single topic shows up with the rules and the company logo. I don't see anywhere to NOT apply the Master Page to the printed output. Is there a secret to not using the online help layout in the printed docs?
    thanks,
    Alia

    Master page headers and footers 100% guaranteed do not survive the trip to printed documentation. My guess is that in the master page your "headers" and "footers" have been created in the body section of the master page.
    Create a new topic attaching that master page in the process. Then unlink the master page from that topic. Do you still see the header and footer? If you do, my theory is proved. If you do not, post back.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Count words in NOTES...

    With this script count the words, but I need to include the words of the notes ...
    myDoc = app.activeDocument
    T = 0
    for ( var j = 0; myDoc.stories.length > j; j++)
    T = myDoc.stories[j].words.length + T
    alert("You have " + T + " words in this document" )
    THANKS...

    One more question ...:
    Could you add the words in the tables?
    Ideally without having to "Search", because that is too slow for long documents ...

  • Can connect to airport but not load internet page

    I can connect my PS3 and window based laptop to my airport network, as both show successful connection, but I can not load internet page on either the PS3 or the laptop. My airport network is not protected. My airport base station is about 7 years old.

    Well the symptoms now point to a number of issues that need to be eliminated and they are you need to check that you are logged onto the ISP. For always ON systems this is usually a function of the Router in which case you need to log onto the Router and check the appropriate settings for this function also release the lease on the IP address and reboot the Router. The other issue is that the Router may not have access to the ISP which may cabling problem [disconnected or accidently damaged cable] within your environment of a service problem within the ISP domain. Check with a neighbour who is subscribed to the same Exchange as you are to see if they have problems otherwise call your Service Provider they may have to perform a reset on their end of your connectivity. Good luck
    Message was edited by: adnixon

  • Multiple master pages, But only first master page is printed or is shown in pdf preview.

    Hi,
    I have 8 master pages in my adobe form, But when I see the PDF preview or print only the first master page is shown or printed. Can anyone please tell me how to print or pdf preview all the master pages. The contents in the master pages are different.
    Thanks in advance.

    Master pages are used a background for body pages (similar to a background image).
    You should put all your contents on separate body pages instead master pages.

Maybe you are looking for

  • Credit Check with Third Party Process

    Hi Gurz, I know about third party process but my problem is with credit check of the customers. If customer has not got enough credit limit to process the order in normal senario credit controller has to manually release the order as system blocks it

  • Lumia 620 software upgrade issues

    Hi,  My Nokia lumia 620 with windows8 was upgraded to the latest software (amber, i guess) and after this the touchscreen stopped working. The touchscreen was recently replaced. * Is there a way to go back to the previous version of software (where t

  • What does the "Other" signify on the "Capacity" indicator in the 'Summary'?

    I was wondering if someone knew what the "Other" section in the Capacity Indicator at the bottom signifies? What files are included in it and how can it be accessed? It has eaten up almost 100 MB of my iPod disk, but I have no idea what the content i

  • Table of messages in programs

    Hi, Experts. I'm looking for the table that contains messages used in programs. For example, table having following information would be great! PROGRAM NAME    MESSAGE ID    MESSAGE NO ZXXXX                    PO                    000 ZXXXX         

  • Adding a Picture behind a movie clip??

    Ok I am shooting a movie. I want to have my cat walking through a city like he's larger than the city. Is there a way to replace the background I'm shooting with to a background of a city skyline? Is this possible to do in iMovie??