Cs3 word count slow

the word count in my indesign cs3 takes several minutes to calculate a 120 000 word document. i never had this issue with cs2. (apart from changing from cs2 to cs3, i've upgraded from tiger to leopard, and upped the ram on my imac g5 from 768mb to 2gb).
any ideas?
william

There doesn't seem to be a problem getting the word count via a script. The Applescript below returns the total word count. I tested it on a doc with 28000 words and it returned the count instantly on my MacPro.
tell application "Adobe InDesign CS3"
tell active document
set wordcounts to {}
tell every story
set wordcounts to wordcounts & (count every word)
end tell
set total to 0
set totalstories to count every item of wordcounts
repeat with i from 1 to totalstories
set total to total + (item i of wordcounts)
end repeat
display dialog "Total words in all " & totalstories & " stories: " & total
end tell
end tell

Similar Messages

  • How can I find the total word count in my entire Indesign CS3 document?

    I have a book that consists of 10 different files and many many different text boxes. I need to find out what the total word count is for the entire book. Is there a simple way to do this, or do I have to copy and paste all the text from InD into a word file to get the number? Your help is much appreciated.

    This AppleScript will get the total word counts of a folder of ID files—it shouldn't be too hard to convert to JavaScript if you are not using OSX:
    tell application "Finder"
    activate
    set myFolder to choose folder with prompt "Select the folder containing the files to count"
    set myFiles to every file of folder myFolder whose file type is "IDd5"
    end tell
    tell application "Adobe InDesign CS3"
    set wordcounts to {}
    set total to 0
    repeat with j from 1 to (number of items in myFiles)
    open item j of myFiles
    tell active document
    tell every story
    set wordcounts to wordcounts & (count every word)
    end tell
    set totalstories to count every item of wordcounts
    repeat with i from 1 to totalstories
    set total to total + (item i of wordcounts)
    end repeat
    close
    end tell
    end repeat
    display dialog "The documents in the selected folder have a total of " & totalstories & " stories, and " & total & " words"
    end tell
    ========================================
    If you just want the active document's count it would be:
    tell application "Adobe InDesign CS3"
    tell active document
    set wordcounts to {}
    tell every story
    set wordcounts to wordcounts & (count every word)
    end tell
    set total to 0
    set totalstories to count every item of wordcounts
    repeat with i from 1 to totalstories
    set total to total + (item i of wordcounts)
    end repeat
    display dialog "Total words in all " & totalstories & " stories: " & total
    end tell
    end tell

  • Word Count feature slow in CS4

    The word cound feature in InDesign CS4 is sometimes very slow compared to what it was in CS2. I'm not even counting vast quantities of text, often a story of 1000 or so words will pause for an infernally long time before displaying results.
    Has anyone figured out a fix or workaround for this? I typically need to count stories or selections in a hurry.
    kurt hoffman
    art director
    Forward newspaper

    If you roll-over the right side of that character count display, a menu will appear, on which also appears the word count. Click on the word count entry, and it becomes the default display at the bottom of the page. Also, by holding down the command key, you can click and drag that floating box to your preferred display location.

  • Approximate word count

    Publishers don't really care how many actual words there are in a document, they care about an approximate number of words. Average number of letters per line divided by 6 multiplied by the average number of lines times the number of pages. Are there any add-ons or built in features that can do that automatically?
    It's no problem doing it manually, but if I have to restrict something to so many words it would be nice to know where I am at with a few clicks.

    Hi -
    Word count is in Document Inspector (first icon on the left.) Open it, click on info.
    It gives you everything from word count to character count.
    For selected areas: I copy a selection and paste it into a blank Pages document, then check word count in Inspector. That is best if you are as lazy as I am and can't be bothered with downloading additional software. Another concern: Pages are and absolute memory guzzler - computer slows down if you open too many applications.
    Hope this helps,
    Sashura, http://i-work-in-pages.blogspot.com
    iMac, iBook   Mac OS X (10.4)  

  • Pages 08' Word Count?

    Is there a word count for Pages 08? If so, how do I see it or view it?

    PeterBreis0807 wrote:
    But Yvan I had to teach you how to do that.
    You had to teach me that quotes are required for Preview under 10.5 because I don't use 10.5 !
    In fact I don't use Preview because I prefer Adobe Reader which displays my docs a better way.
    here Preview under 10.5
    here Adobe Reader (10.4 and/or 10.5)
    More to the point is that if the Word Count function is in a logical location, why are so many unable to find it without resorting to searches of the manual?
    Because most of them doesn't search seriously.
    But, even it the location was odd, it's not normal that they ask here before searching in the Help AND in the PDF User Guide.
    The forum is not a catch all questions recipient.
    The Help and terms of use clearly urges them to search in the delivered resources.
    These resources are:
    (1) the menus themselves
    (2) the Inspectors themselves
    (3) the Help
    (4) the PDF User Guide which is delivered with every copy of iWork, on disk or in downloaded versions
    (5) last not least, in the existing threads.
    For my own use, I searched in the Help and in the PDF because I was surprised to read users claiming that they didn't found the info.
    Doing that, I discovered that what _I got in the Edit menu_ is also available in an Inspector in which I had never searched as I was already able to get the tool in the menu.
    When I searched in the Help I found nothing useful.
    When I searched in the PDF, as I am running 10.4, Preview and Adobe Reader gave the response instantaneously.
    You wrote here that under 10.5, Preview behaves differently.
    I checked and in my response I wrote that quotes may be required.
    Last not least, searching in the existing threads give also the response immediately.
    So, from my point of view, if we continue to read the question here it's only because many users think _"why would I make the effort to search by myself when there will be some one which will give the response on the forum"_ . In other words, lazyness is becoming the rule.
    Yvan KOENIG (from FRANCE mercredi 24 septembre 2008 17:28:05)

  • Is there a way to exclude title, heading and bibliography text from the word count in pages?

    I've just got the newest version of pages.
    The word count includes everything, from titles to endnotes - including the numbers in my sub-headings.
    I used to use open office where you could select a style i.e. 'body tex't, and get a word count that didn't include every single word in a document.
    Is there a way of doing something similar, or reseting the word count to only 'body text' so I know exactly how long my essays are?
    Thanks.

    Unfortunately, no version of Pages has this fine-grained control over document components and their word count, so the answer is no, regarding user changeable settings.
    Programmatically, I just told AppleScript to count the words of body text in a currently opened Pages v5.2 document. The count matched the Pages word count for the document. So, no solution there either.

  • Does anyone know why the word count in Word for Mac changes so drastically? In one document it goes up and down by several hundred at a time when I have done nothing but scroll through the document.

    I am new to the wonderful world of Mac and all of my documents were created in MS Word on my old laptop. I noticed that the word counts were slightly different when I opened the documents in Word for Mac, but then I noticed that they changed drastically. For intance, I opened a document today and after the initial period where the word count shifts, it seemed to settle on 13,171. I left the document for a while to work on some other things and when I came back the word count had changed to 11,677. I didn't do anything to the document. Word counts are important to me since I need at least 60,000 for my PhD Dissertation. Which word count should I trust?

    Since Word is a Microsoft product, you should probably post your question on the Microsoft Mac forums:
    http://answers.microsoft.com/en-us/mac

  • When converting a PDF document to word, the word count feature is not giving me the number of words

    I have been using Acrobat for converting PDF documents to Word.  It had been working just fine, but lately, when I convert a PDF document to Word, it is not giving me the word count, which is why I subscribed in the first place. Someone has any idea of why?

    Hi Robin,
    I would recommend you to use Acrobat software to convert this pdf file, Acrobat software enable you to customize the conversion settings.
    You can download a free 30-day trial from this Link : https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    After downloading and installing acrobat, Open pdf file in Acrobat, go to File menu -> Click 'save as other' -> Microsoft Word -> Word Document.
    A pop-up window will appear that would prompt you to choose the file to be converted, after you select the file, click on the settings button on the bottom left of the pop-up window and choose 'Retain Page layout' under layout settings, click ok and then save.
    Hope that helps with your query.
    Regards,
    Rahul

  • Putting Word Count in Pages Document

    Is there a way to insert a document's current word count directly into the body of the document? In other words, is there a way to do the equivalent of "Insert Page Number" or "Insert Page Count" for word count?

    PeterBreis0807 wrote:
    See *How to Insert Current Weather and Word Count into Your Document* p307 in the Pages09_UserGuide.pdf downloadable from under the Help menu.
    Peter
    It's dificult to read page 307 in a guide containing 266 pages.
    On page 37 I may read how to view word count and other document statistics but,
    - I saw nothing about current weather
    - I saw nothing about a way to insert the word count in the document as it was asked by the OP
    As far as I know,
    we may insert page num, page count, date time, file name
    but we only
    may display word count.
    Yvan KOENIG (from FRANCE mercredi 27 mai 2009 18:21:12)

  • How do you get word count to print at the end of a document in Pages?

    How do you get word count to print at the end of a document in Pages?

    Pages v5 does not provide a user assignable word count variable. With some AppleScript, and a paste operation from the clipboard, you can have locale punctuated word count in this format: 7,803 — anywhere in your document. The following AppleScript works with Pages '09 v4.3 through Pages v5.5.2 on Yosemite.
    I would suggest that you copy paste the following AppleScript into your [Apple] Script Editor and save it (suggestion) wordcnt.applescript. Then, follow this with an option+Save As… and this time set the File format to Script Bundle, or Application with hidden extension — saved to your Desktop. Provided you have a Pages document open, you are then a double-click from the ability to paste your current word count into Pages.
    Note: If you have Pages word count display enabled, it will automatically count your pasted value as another word which initially may deceive on true word count at the time the script was run.
    AppleScript
    --- copy below this line ---
    property locale : "en_US.UTF-8" -- In Terminal, use the locale command to see yours
    if not ApplicationIsRunning("Pages") then
         display dialog "Pages must be running to use this utility."
         return quit
    end if
    tell application "Pages"
        tell body text of front document
            set wordCnt to count words
            -- Don't want punctuated numbers? Remove the single quote from printf format
            set the clipboard to (do shell script "export LC_ALL=" & locale & "; printf \"%'d\" " & wordCnt)
        end tell
    end tell
    on ApplicationIsRunning(appName)
         tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
         return appNameIsRunning
    end ApplicationIsRunning

  • Can you do a Word Count in Pages?

    I am working on College essays and applications and a lot of the essays they require you to write can only be so many words. Is there a way to do a word count on Pages? On my PC, Microsoft Word 07 automatically has the word count in the bottom of the window.
    Please help!

    In the inspector there is an automatic word count in the document section. All you need to do is select the info column and it should be there!
    John

  • Indesign CS6 Total Document Word Count... No?

    I left the following comment on a Youtube tutorial explaining how to execute a word count query for an Indesign document ASSUMING your article layout uses a single box of text:
    What if an article uses a creative layout with multiple text-boxes? Are you supposed to get out your pocket calculator and add them up one-by-one?
    I work for a magazine that publishes short, submission-style testimonials bridged together with staff-generated narrative copy; some of our articles use six or more discreet text-boxes. You REALLY MEAN TO TELL ME that there is NO WAY to yield a TOTAL DOCUMENT WORD COUNT using what is SUPPOSED TO BE the MOST ADVANCED page layout application ON EARTH??
    Pardon my exasperation in the above comment, but....Seriously?  
    I need someone knowledgeable to please look me in the eyes and tell me, "This is true", before I am going to be able to let myself believe it.
    Thank you.
    - Exasperated Journalist Slag

    Yes, there are ways, just not what you expected.
    One approach to counting words in multiple text frames in InDesign is to thread them together. To maintain the pieces of text in their assigned threaded text frames, you can create a paragraph style that starts in the next frame, and assign it to the first paragraph in each text frame. Or, you can break the threads when the count is stable.
    If the text frames need to adjust their size to the amount of their content, search Google for terms like "indesign auto resize text frame" without quotes for details.
    There was a recent discussion about auto-resizing text frames that mentioned the free AutoFit InDesign plug-in, from typefi.com. Search Google for terms like "indesign typefi autofit" for details.
    Search Google for terms like "threading and unthreading InDesign text frames" without quotes, for details.
    Search Google for terms like "indesign start paragraph in next frame" without quotes, for details.
    You can file a formal feature improvement request here: Wishform.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    evanexempt wrote:
    I left the following comment on a Youtube tutorial explaining how to execute a word count query for an Indesign document ASSUMING your article layout uses a single box of text:
    What if an article uses a creative layout with multiple text-boxes? Are you supposed to get out your pocket calculator and add them up one-by-one?
    I work for a magazine that publishes short, submission-style testimonials bridged together with staff-generated narrative copy; some of our articles use six or more discreet text-boxes. You REALLY MEAN TO TELL ME that there is NO WAY to yield a TOTAL DOCUMENT WORD COUNT using what is SUPPOSED TO BE the MOST ADVANCED page layout application ON EARTH??
    Pardon my exasperation in the above comment, but....Seriously?  
    I need someone knowledgeable to please look me in the eyes and tell me, "This is true", before I am going to be able to let myself believe it.
    Thank you.
    - Exasperated Journalist Slag

  • Word count and my ActionPerformed

    I am having a little trouble with my program and was wondering if anyone could spot the mistake... I am trying to make a simple application that will count the number of words in a text field via click of a button and display the results.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class WordCount extends JFrame implements ActionListener
    // added JTextPane, JScrollPane, JPanel JTextField, and JButton
        public static void main(String[] args)
         // layout
        public WordCount()
              super();
              Container cp = getContentPane();
              wordCount.setEditable(false);
              south.setLayout(new FlowLayout(FlowLayout.CENTER));
              south.add(jbtCount);
                   jbtCount.addActionListener (this);
              south.add(new JLabel("  Word Count: "));
              south.add(wordCount);
              cp.add(BorderLayout.CENTER,jsPane);
              cp.add(BorderLayout.SOUTH,south);
         public void actionPerformed(ActionEvent e)
              //if(e.getSource() == jbtCount)   // user clicks Count Words Button
              Object s = e.getSource();
             if ( s instanceof Button )
                  jtPane.setDocument(new DefaultStyledDocument() {
                        public void insertString(int offset, String str, AttributeSet as) throws BadLocationException
                           super.insertString(offset,str,as);
                           String text = jtPane.getText();
                           String[] tokens = text.split(" ");
                           wordCount.setText("" + countValid(tokens));
                         public void remove(int offset, int len) throws BadLocationException
                           super.remove(offset,len);
                           String text = jtPane.getText();
                           String[] tokens = text.split(" ");
                             wordCount.setText("" + countValid(tokens));
                  else{}
         } // end actionPerformed
         private int countValid(String[] tokens)
              int count = 0;
             for (int i = 0; i < tokens.length; i++)
                    if (tokens.trim().length() != 0)
              count++;
         return count;
    } // end public class WordCount

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class WordCount extends JFrame implements ActionListener
         JTextPane jtPane = new JTextPane();
         JScrollPane jsPane = new JScrollPane(jtPane);
         JPanel south = new JPanel();
         JTextField wordCount = new JTextField(20);
         JButton jbtCount = new JButton("Count Words");
        public static void main(String[] args)
              int width = 700;
              int height = 300;
               WordCount f = new WordCount();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             f.setSize(width, height);
             f.setTitle("Word Counter");
             f.setLocation(200, 200);
             f.setVisible(true);
        public WordCount()
              super();
              Container cp = getContentPane();
              wordCount.setEditable(false);
              south.setLayout(new FlowLayout(FlowLayout.CENTER));
              south.add(jbtCount);
                   jbtCount.addActionListener (this);
              south.add(new JLabel("  Word Count: "));
              south.add(wordCount);
              cp.add(BorderLayout.CENTER,jsPane);
              cp.add(BorderLayout.SOUTH,south);
         public void actionPerformed(ActionEvent e)
              //if(e.getSource() == jbtCount)   // user clicks Count Words Button
              Object s = e.getSource();
                  // *** process Button actions
            if ( s instanceof Button )
                  jtPane.setDocument(new DefaultStyledDocument() {
                        public void insertString(int offset, String str, AttributeSet as) throws BadLocationException
                           super.insertString(offset,str,as);
                           String text = jtPane.getText();
                           String[] tokens = text.split(" ");
                           wordCount.setText("" + countValid(tokens));
                         public void remove(int offset, int len) throws BadLocationException
                           super.remove(offset,len);
                           String text = jtPane.getText();
                           String[] tokens = text.split(" ");
                             wordCount.setText("" + countValid(tokens));
                  else{}
         }// end actionPerformed
         private int countValid(String[] tokens)
              int count = 0;
             for (int i = 0; i < tokens.length; i++)
                    if (tokens.trim().length() != 0)
              count++;
         return count;
    } // end public class WordCount

  • Problem with getting word count in TLF text

    Hi,
    I want to get the word count from my TLF text, but the problem is that I am not being able to handle th case for space.
    I am using the findNextWordBoundary property of ParagraphElement as shown below:
    private function countWords( para : ParagraphElement ) : void
                var wordBoundary:int = 0;
                var prevBoundary:int = 0;
                while ( wordBoundary != para.findNextWordBoundary( wordBoundary ) )
                   // If the value is greater than 1, then it's a word, otherwise it's a space.
                    if ( para.findNextWordBoundary( wordBoundary ) - wordBoundary > 1)
                        wordCount += 1;                   
                    prevBoundary = wordBoundary;
                    wordBoundary = para.findNextWordBoundary( wordBoundary );                   
                    // If the value is greater than 1, then it's a word, otherwise it's a space.
                    if ( wordBoundary - prevBoundary > 1 )
                        var s:String = para.getText().substring( prevBoundary, wordBoundary );
                        lenTotal += s.length;
    Now I have 2 issues here:
    If my string is for eg: Hi, I am writing in "TLF". And I want to get its word count then
    1) Suppose I take the case of the string Hi,  . Then para.getText().substring( prevBoundary, wordBoundary ) gives the text as Hi i.e without the comma. Same case for the string "TLF forums" , It treats each " as a single word and not the whole "TLF" as a single word. Why doesn't it compute till spaces, that should be the ideal case. So until we don't give a space it should count the whole thing as a word.
    2) So now the problem is I have applied a condition   if ( wordBoundary - prevBoundary > 1 ) to check if it is a space i.e. if the diff is <= 1 it is a Space. But if I use this I miss out on single words. Like for eg if I have "Hi, This is a string" ,then 'a' is ignored too.
    Now I could have added a check here along with the space check that the string between prevBoundary and wordBoundary is " "(i.e a space), Then also it is a problem as then the single words like a,&,I will be ignored.
    So, now I am stuck with this issue and need some help from you guys.
    Thanks

    findNextWordBoundary is not going to serve your purpose.  I'd propose doing something like this:
    // didn't test this but something like this - whitespace matches any set of 1 or more white space characters
    static const whiteSpaceRegExp:RegExp = /[u0020|u000A|u000D]*/
    public static function countWords( para : ParagraphElement ) : void
         return para.getText().split(whiteSpaceRegExp).length;
    A good list of everything considered whitespace extracted from the unicode space can be found here:
    http://sourceforge.net/adobe/tlf/svn/449/tree/trunk/textLayout/src/flashx/textLayout/utils /CharacterUtil.as
    In function createWhiteSpaceObject
    Hope that helps,
    Richard

  • InDesign CS6, Formulare - Wortzahl für ein Feld definieren / Define word count for a form field

    Ich habe folgende Frage: Ist es mit inDesign CS6 möglich, ein interaktives PDF zu kreieren, in dem die zulässige Wortzahl in einem Feld genau definiert wird?
    Im speziellen Fall möchte ich ein Eingabefeld auf eine DIN A4 Seite setzen, welches exakt 350 Wörter erfordert, um die Seite druckbar zu machen... Mehr Wörter sollten nicht eingegeben werden können und sollten es weniger sein, ist ein Drucken nicht möglich...
    I have the following question: Does InDesign CS6 offer am option to create an interactive PDF with a text/form field which allows ONLY a defined number of words?
    In this particular case I would like to create a DIN A4 page with a file dwhich allows for exactly 350 words to make the document printable. If one put's in less than 350 printing should be disallowed and at the same time it should be impossible to type more than the allowed number of words.
    Jörg Hippo Thomsen

    Hi Steve!
    Thanks to a google search I have managed to solve the issue flawlessly
    Look  at this little java script:
    var val = event.value + event.change,
    matches = val.match(/\b[\w\-\']+\b/g),
    count = matches.length;
    this.getField("charCount").value = count;
    if (count > 90) { app.alert("You have exceeded the maximum of 90 words for this text field.") }
    1. This script needs to be inserted under Properties/Format/Custom/Custom Key Stroke Script.
    2. One creates a second fiield namend charCount to display the word count.
    Voila! The text field will pop up a warning if the allowed maximum word count is exceeded and it will display the word count in the extra field

Maybe you are looking for