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

Similar Messages

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

  • I have a 120gb Classic that has no space left on it. i am going to buy a larger gb capacity ipod as soon as i get clearer instruction on how to get the old ipod content to the new ipod. How do you get content from one ipod to the other?

    how do you get content from one ipod to the new one? my content is on an external hard drive not on my pc and i have run out of space on my 120gb classic. can you get old ipod content to new? my itunes has only got short cuts, the real content is on an external drive? can this be done?? please help

    If the content is on an external drive, but your library knows where to find it, then it should all work. Connect your device, make some selections for what to put on it, and sync. If, on the other hand, your current iPod is the only place holding some of your media then see this user tip: Recover your iTunes library from your iPod or iOS device.
    tt2

  • Background noise removal takes about 3 seconds into each clip in timeline to kick in, so each clip has noise in the first few seconds.  How do you get this to remove noise from the very start of the clip?

    Background noise removal takes about 3 seconds into each clip in timeline to kick in, so each clip has noise in the first few seconds.  How do you get this to remove noise from the very start of the clip?

    insert a 5 second gap in the beginning of the timeline.

  • Content Holder How do you get css class to appear in the wysiwyg editor? The only option is "clear class".

    Need an answer to my question: How do you get css class to appear in the wysiwyg editor? The only option is "clear class".

    Liam,
    If it's not supported there, then where can I access the css and do you have any recommendations for a simple app to change the css style?

  • How do you get fontmetrics before displaying something on the screen?

    Let me ask in another way:
    how do you get fontmetrics before displaying something on the screen?
    Edited by: tjacobs01 on Aug 24, 2008 12:03 PM

    and you call getGraphics() it returns nullI learned to not use the getGraphics() method. Check out my posting here where I ask what the getGraphics() method is good for:
    [http://forums.sun.com/thread.jspa?threadID=5233274&messageID=9954741|http://forums.sun.com/thread.jspa?threadID=5233274&messageID=9954741]
    Also, c.getFontMetrics(c.getFont()) will be an NPE because Font is initially null.Maybe I don't understand the question. The following works for me:
    import javax.swing.*;
    public class Test
         public static void main(String args[])
              JTextField textField = new JTextField();
              System.out.println(textField.getFontMetrics(textField.getFont()));
    }Every question should have a SSCCE, so we don't have to guess.

  • How do i get my team to all see the same say, ID, document using the cloud?

    how do i get my team to all see the same say, ID, document using the cloud?

    Adobe Max was a smoke and mirror show and they demonstrated "Folder Sharing" so we bought into it. Myself and 7 of my clients. After the Max show they turned it off like nobody would notice. Two weeks after they stopped the folder sharing feature they put a little notice that they had did this. Nice how they treat their loyal customers. Every month they charged us an extra $20 over a single account without the folder sharing. What good is "team work" if you can't share a folder of files. Sharing a single file at a time is a waste of time.
    After a year still no folder sharing but the same old story of "soon". Adobe is using the extra money they are "stealing" from paying clients to pay for this development. We are being forced to pay the extra money again for another year as there is no way to downgrade to a single user account. Adobe likes to use this as an excuse to continue to rob and steal from loyal user that have no choice but to deal with these crooks.
    My only suggestion is for new users not to buy the team account package. There marketing material is filled with misleading statements that gives the potential new customer the impression that they can work in teams, as if a team can  work sharing single files. This is a sign that Adobe is about the cash grab and not about the quality of software and the end user experience.

  • How do you get your content in front of the right people?

    "Outbound Content Marketer of the Year, Joe Chernov (VP of content at HubSpot) told me: Marketers always ask me how to make more or better content, and it’s almost always the wrong question. The right question is: “How do I get my content in front of the right people?” - Forrester's Ryan Skinner
    Forrester published a very interesting report in October called "Put Distribution at the Heart of Content Marketing" (here's the related Forrester blog post). My VP shared the report with me and asked me to review and research a key content distribution strategy potentially leveraging the key technologies that are listed in the report. These technologies focus on helping identify influencers, publish content on targeted media properties and publish content if it ranks highly. I have to admit, this is somewhat new territory for me - I've yet to really focus on content distribution strategies across the entire buyer/customer lifecycle and although I've used one or two of these technologies personally, others I've only heard of and some I just flat-out had to Google.
    In true intrapreneurial spirit, I starting working through the research phase - I'm actually still working through it - and as I do, I can't help but to start mentally creating a blueprint of sorts... Imagining our technology roadmap interwoven with a content distribution strategy to create and drive a valuable buyer/customer experience (to acquire, keep and grow, of course). Ideally, we'd be able to accomplish all of the above points to significantly - and intelligently - extend our reach moving forward. So, back to the the Forrester report... To help more holistically drive content distribution, Forrester recommends creating a "distribution boss" and linking that person to content creation. I like it. To even further boost success of content marketing initiatives, Forrester suggests: (and I'm paraphrasing liberally here):
    1. Your distribution boss needs to be a left-brained analyst with a right-brained way with words
    2. Borrow some $$ from your content creation budget for some content promotion
    3. Encourage a BFF relationship between your PR and media teams and your content marketing teams
    Bottom (or should I say "top") line? I'm looking forward to our organization developing a more scientific content distribution strategy in 2014. Can I get an "amen!"? So, what are you and your teams doing to take a more scientific approach to content distribution in 2014? Or what are you currently doing? I look forward to Topliners feedback!
    Cheers!
    Kristin
    P.S. Technologies currently under review:
    - Include your influencers in a distribution strategy: Little Bird, Klout, PeerIndex
    - Look to specific vendors to push content on publisher’s sites: Outbrain, Sharethrough, Taboola
    - Identify social content winners and invest to amplify reach on the networks that work: SimpleReach
    - Keep an eye on emerging technologies for content visibility and distribution: TrendSpottr
    - Others: Parse.ly
    CC: marilyncox

    Alessia,
    I agree! In our current blog consolidation project, we're implementing Google Authorship for all our bloggers and we're currently evaluating how to best leverage Deltek's Google+ channel w/in our content strategy. Our PR/Social Director is not a fan - I'm working on, I mean with, her to see the possibilities.

  • How do you get Cloud storage to back up the SD Card?

    My daughter S3 died and had to be replaced. Lost all the data and apps that were stored on the phone's internal memory. With the replacement phone, I set up the cloud storage for back up offered by Google but it only accessed the data on the phone's main memory and not the separate SD Card that is installed. How do you get the Cloud app to also back up the SD card data?

        NDBeartrap, Let's help get your daughter's info back! If the info was backed up the cloud, you would be able to download it back to the device. Can you verify that there is info on the sd card? this can be done by inserting the sd card into a reader w/adapter or phone that is compatible. Please let us know what happens.
    sheritah_vzw
    Follow us on Twitter
    @VZWSupport

  • How do you get to your apn settings on the iPhone 4s

    How do you get to your APN settings without jail breaking your phone

    take a look at the link 
    ios: viewing and editing apn  http://support.apple.com/kb/HT2283

  • How do I get my emails to print all the way to the sides???

    When I want to print an email, the right sides get cut off and don't print out. Even if I highlight them, they don't print.

    Hi Hearingaids;
    I'm sorry to hear you are having problems printing.
    To further assist you would you please provide some further information:
    1) What type of HP printer do you have?
    2) What is the model/product number of your HP printer?
    3) What program are you trying to print from?
    4) What steps are you taking to send your print job to the printer?
    I have included a link for you on how to find your model/product information.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=bph07555&cc=us&dlc=en&lc=en
    Happytohelp01
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How do you get a table to flow onto the second page?

    Since upgrading to Yosemite, I cannot figure out how to get my table to continue on to the second page. If you look at my screenshot, you can see that my table was so big so the whole thing was moved to the next page. I want it to remain on the 1st page and have additional rows continue on to the second page. In the previous version of pages, the column titles would also appear on the second page. Thank you very much for your help.

    Hi F.AD.;
    Go to View > Show Invisibles (Shift+Command+I).
    This will display Paragraph marks (¶) at the end of each paragraph.
    Delete the paragraph mark (¶) that is at the end of the paragraph before the table, i.e. just between the table and the paragraph.
    This will bring the table surely just beneath the paragraph (text), I suppose.
    Hi BePositive26;
    You didn't mention whether my suggestion made easy to solve your problem.
    Regards,

  • URL, title etc of webpages do not print on pages printed off internet despite selecting these in header/footers in page set up. How do I get URL etc to print on the page?

    No matter how I try I cannot get the URL of a webpage or other options such as page title, date etc to print if I print up a webpage. I have done the necessary selections in file>page setup>headers & footers choosing the options from the drop downs. I have even tried making top or bottom margin bigger thinking there was not space on the page. This is still the case if I try to print to different printers.
    Is there something I am missing that needs to be done via some other setting or menu item?

    Thanks, this was a good idea to try, however it doesn't seem to have helped.
    I reset:
    print.print_printer
    Also tried resetting:
    print.printer_Lexmark_6500_Series.print_footercenter
    print.printer_Lexmark_6500_Series.print_footerleft
    print.printer_Lexmark_6500_Series.print_footerright
    print.printer_Lexmark_6500_Series.print_headercenter;
    print.printer_Lexmark_6500_Series.print_headerleft
    print.printer_Lexmark_6500_Series.print_headerright
    Closed and restarted the browser.
    I then selected URL in footer right in page setup but still it refuses to show in print preview or print on the page in hard print. It is most peculiar. Any other ideas? Thanks.

  • How do you get your photos, apps etc. from the iCloud after your iPhone 5 has been set up at the AT

    How do you your get your apps, photos, etc,  from iCloud after your iPhone 5 has been set up at the AT&T store?

    http://support.apple.com/kb/HT4859

  • How do you get Itunes to have control in the tray when you minimize

    A little while ago, before i messed around with some of my computer settings, i was able to control Itunes while it was minimized so instead of having a button for itunes it was a play and two skip buttons on the bottom, how do i get my itunes to do this again

    You can get a taskbar toolbar by right clicking anywhere on your taskbar. Select toolbars and put a check mark next to iTunes. Then, in iTunes Preferences: iTunes > Edit > Preferences > Advanced Make sure the box Minimize iTunes to the System Tray is UNCHECKED.
    Now when you minimize iTunes you'll get the toolbar.

Maybe you are looking for

  • Number range purchase requisitions at storage location level

    How can I define a number range for purchase requisitions at storage location level? I have one plant with several storage locations and I want a number range for purchase requisitions per storage location.

  • How to use classes in ABAP report

    I have classes 1. CL_HRRCF_CANDIDATE_BUPA_BL:- to get the name of the candiidate to get the add of the candiidate to get the telephone no of the candiidate 2. CL_HRRCF_CANDIDATE_INFOTYPE_BL to get the education data of the candiidate but i don't know

  • Lipo download is it?  but corrupted my imessage and app store

    as in...yesterday something launched itself on my screen, think it was called lipo or similar, from Apple I think. Anyway, I hite the wrong button and it installed itself, not sure what it is or what it was for but I cannot now load imessage or the a

  • FAL Questions

    Oracle version :10.2, 11.2 Both FAL server and FAL client are nothing but intialization parameters (FAL_SERVER, FAL_CLIENT) set at the standby DB's spfile. Right? FAL server and FAL clients apply only to Physical Standby database. Right? At the stand

  • In restrictions on my iPad there is no 17 in apps

    Okay so, I used to able to download 17+ games seeing that I am over 17 and so is my account (1990). I'm unable to download 17+ games anymore, no I don't have low gb, no I didn't set my date on my account lower then 1997. I have tried soft resetting,