<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:black'>Hi Rod,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>Do you have any ideas how you would want to implement this in your book? For example, would you want a FrameMaker variable that would contain the current word count? This may be the best way to go because it would give you the flexibility to use the word count anywhere you need it. I could write an ExtendScript script that would do essentially do work like this:<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>1) You would run a command called "Update Word Count". You could run it on the active book or active document. If you ran it on a book, it would count all of the words in the book; if you ran it on a document, it would count all the words in the current document.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>2) The script would use a regular expression to count all of the words in the document. The count would put into a "WordCount" variable in the each of the book's components. Of course, you wouldn't have to use the variable in all (or any) of the components; you would only insert the "WordCount" variable where you need it.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>I could write a script like this for you for $240. It would be written with ExtendScript and the script would be fully commented. This will also serve as a learning tool and give you a head start on writing your own scripts. I am not able to write it for free because I of other scripting jobs that I have. If you decide to try it yourself, there is a FrameMaker ExtendScript forum on the Adobe Forums site. See<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>http://forums.adobe.com/community/framemaker/extendscript<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>Please let me know if you have any questions or comments. Thank you very much.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>Rick<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>Rick Quatro<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Carmen Publishing Inc.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>*** 585-283-5045 *** NEW NUMBER<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>rick@frameexpert.com<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>http://www.frameexpert.com<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> framers-bounces@lists.frameusers.com [mailto:framers-bounces@lists.frameusers.com] <b>On Behalf Of </b>Rod Fee<br><b>Sent:</b> Wednesday, February 01, 2012 10:22 PM<br><b>To:</b> framers@lists.frameusers.com<br><b>Subject:</b> Wordcount at Book level rather than FIle level<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-NZ>Hi there,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>I am using:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ>Windows 7 64 bit and <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ>Framemaker 10.0.1.408<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>I am writing a book. I have a Framemaker ‘book’ file and in it I have 25 or so chapters which are each separate files.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>My need is to put a word count somewhere at the beginning of the book that is a count of all words in the book.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>I note that there is a word count feature per file which I can use but it is boring doing this all the time on each file and then adding them up.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>I am new to scripting in FM and though I see one or two scripts that say they do what I want to they either cost money or are made fro earlier versions and do not appear (to me anyway) to give any result when I run them from File/Scripts.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>Can anyone assist?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>Great forum by the way. I have learned heaps just reading the flow of emails coming in for all sorts of strange and wonderful purposes </span><span lang=EN-NZ style='font-family:Wingdings'>J</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ>Rod Fee<o:p></o:p></span></p></div></body></html>