In Pages document, how do I search for word and view its frequency and page numbers in a sidebar?

I have a long document and I want to be able to search for certain key words and phrases, and then see how many times they appear in the document and exactly where.  How do I conduct this sort of search and viewing?  In the past, in Pages and Word, I've been able to view my "finds" in a sidebar but I can't figure out how to activate that service anymore.
Thanks!

Here is a word frequency concordance Automator Service that works in both versions of Pages. It does not present a page number reference. It is by descending count, and alphabetically, within the repetitive counts as shown in the image here. In any document, you select the text to process, then Menu > Application Name > Services > Frequency. The Service will open TextEdit with the n-pages of scrollable results. It is 16 pt Helvetica Neue for legibility.
Here is the code:
on run {input, parameters}
     try
          set mySelection to input as text
          set formatted_result to concordance(mySelection)
          if formatted_result is not null then
               set textHeading to "Word Frequency List"
               tell application "TextEdit"
               activate
                     set NewDoc to make new document with properties {name:"Concordance"}
                     make new paragraph at beginning of text of NewDoc with data textHeading & return
                     make new paragraph at end of text of NewDoc with data formatted_result
                     tell text of NewDoc
                           set font to "Helvetica Neue"
                           set size to 16
                           set color of paragraph 1 to {0, 0, 65535}
                     end tell
                    end tell
          else
                    display dialog with title ¬
                     "No input selected" with icon stop ¬
                      giving up after 15
          end if
     on error errmsg number errnum
                display alert ¬
                           "AppleScript Error" message errmsg & "[" & errnum & "]" as critical ¬
                              giving up after 30
     end try
     return input
end run
on concordance(mySelection)
-- Use Ruby to count word frequency and alphabetically sort words
    set rb to ¬
    "selected = String.new\nfreqs = Hash.new(0)\nselected = ARGV.join('  ').gsub(/[,.]/, \"\")\n
     words = selected.split(/[^\\w-]+/)\nwords.each { |word| freqs[word] += 1 }\n
     freqs_sorted = freqs.sort do |a,b|\n\t
     a.last == b.last ? a.first <=> b.first : b.last <=> a.last\nend\n
     freqs_sorted.each { |k,v| printf \"[ %8s ]          %s\", v, k }"
    do shell script "/usr/bin/ruby -e " & rb's quoted form & space & mySelection's quoted form
end concordance
Launch /Applications/Automator and choose New Document, then click the Service icon, and then select the Choose button.
On the left, you will have a list of Libraries from which to choose workflow items. Find Library > Utilities. In the adjacent column, locate the Run Applescript workflow. Click on it, then drag and drop it in the large workflow window to your right.
At the top, you can select Service receives text in any application. Leave Output replaces selected text unchecked.
In your Run AppleScript workflow window, you will see AppleScript boilerplate. Click on it and press command+A, then backspace to delete this content. Copy and paste the above code into this Run AppleScript workflow window. Press the Run button in Automator's upper right corner. If (and it should) a TextEdit window pops up, you are good, and you want to press File > Save. A dialog box will pop-up where you can name your Service. I called my Frequency, you may wish to call it something else. Once you have save it, you can exit Automator. Services are deposited in yourlogin directory/Library/Services.
If you have a Pages document open with text, either select it, or command+a to select the entire document. Now, you select your Service via Pages > Services > Frequency. This will now pop-up a new TextEdit document with the results. If you want to save this new document, you must use option+File to Save as...

Similar Messages

  • How do I search for songs and artists within playlists?

    In the Itunes music app on the Ipod touch there are several views (Songs, Playlists, Genius, Artists, etc.) In song view if you swipe down it reveals the search bar. However when you go to Playlist view and choose a specific playlist there is no search bar or option anywhere to search for a specific song, artist, genre etc.
    So how the heck do we search within playlists, where is the search bar or where is the option to search in a specific playlist?

    Top right hand corner of the store is the search bar. Just type it in, and it shows up.

  • How do I search for words inside documents, rather than the title? I have OS 10.9.4 and have lost this feature a few OS updates back.

    Sometimes titles do not match the content. If I have a bunch of files with similar title, i.e. Chapter 1, 2, etc., but I want to find the chapter with the jabberwock in it, I used to be able to type "jabberwock" and it would come up in my search window.  Now it's only finding titles. I have so many files on my puter that it's taking me forever to find important documents.  Where did they hide this feature??? Tearing my hair out.

    Spotlight Alternatives
    EasyFind – Spotlight Replacement
    Find Any File

  • Anyone know how to make folders for Word and Powerpoint?

    I've been trying to make folders for my word documents. i dont know how though!! Thanks for the help!

    Open Finder, highlight your Macintosh HD and select New Folder. Name it whatever you want. In Word there is an option to Save File in X folder. Select that new folder you created. Alternative to this is when saving a file a dialog window will open where you can select the folder to save in, select the folder you created and there should be an option to make this the Default folder to save to (but not sure about that option in the Save dialog box).

  • How do I search for a saved document in Pages on IPad 2?

    I have a lot of docs in my pages app. How can I search for the doc I want?Thanks

    Open the iTunes app > Search > then type the Artist's name

  • I have ca. 30 pdf documents I need to search for keywords; how can I do on my MAC?

    I have ca. 30 pdf documents I need to search for keywords; when I open these documents in Adobe Reader on my MAC, it shows a Search tool; however, when I search for keywords I know are in the document, none are found.  How can I do a keyword search?

    Do you know if the text has been OCR recognised? Are the original documents "scans"?
    An easy way to find out, if you can select an individual word or letter? If you are selecting a whole block of text then the document will need to be put through Optical Character Recognition (OCR) software first to enable you to keyword search.

  • How do you get a word and character count of a document in Pages for Mavericks

    How do you get a word and character count of a document in Pages for Mavericks?

    Hi jonathan,
    I struggled with this one as well, as i'm finishing up a PhD thesis and word counts are incredibly important. Through trial and error i found out that words like 'e.g.' and 'i.e.' count as two words and an ampersand (&) doesn't count at all. That being said, i didn't like the fact that the word count always included footnotes and i was dismayed that i couldn't get an accurate count of words in the main body of my text. That all disappeared yesterday when, by chance, while i was copying a completed chapter and pasting it into my main document, i discovered that Pages can indeed give you an accurate word count excluding the footnotes!  Here's all you need to do:
    1. In pages 5.2, make sure that the Word Count function is first enabled by selecting View --> Show Word Count from the Pages Menu Bar. (If it's already enabled, it will read View --> Hide Word Count, so if that's what it says, then no need to do anything.)
    2. Once enabled, check the Word count that's currently showing at the bottom of the page. That's the word count including your footnotes.
    2. Now, place your cursor anywhere within the current document, then hit command+A (for Select All).
    3. Viola! Your word count now shows the actual number of words within the body of the text only, excluding footnotes!
    Hope that helps!

  • How do i search for a keyword in a document inside CMS?

    I have several documents uploaded into CMS.
    At runtime, how do i search for a particular keyword in a document which is present inside CMS?
    Any idea would be greatly appreciated.
    Thanks,
    -Nach.

    If you're talking about searching based on the content of the documents uploaded, you will definitely need to integrate with a search engine to do periodic indexing of your content. The two most common search engines used with WLP are Autonomy (a light version is included with WLP) and Apache Lucene (free, highly customizable solution).
    You should find good docs and articles on dev2dev to get started with either one.

  • How do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    how do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    Photo albums are not searched by Spotlight Search.  Go to Settings > General > Spotlight Search to see and reorder the available search items.
    For more details, see page 12 of the iPad iOS 5.1 User Guide

  • How can I "search" for Library Items?

    I am developing a site in flash and have over 800 Library Items. My problem is, I need to edit a portion of a Library Item and cannot find the Library Item, and NO, I did not delete the Library Item because when I go to preview or test the flash document, the Library Item is there in the movie. Is there any way to search for the Library Item? I am using Flash Professional 8..
    Thank you.

    I'm not sure how you would search for it if you don't know how to identify it.  You should be able to doubleclick on the object on the stage to open it up for editing.  When you do that, the stage area will display the library name of the object at the top of the stage border in a tab.  Things are ordered alphabetically in the library, so if you know the library name of the object you should be able to narrow down where it is.

  • How to search a word and its page in Acrobat 6.0 using vb6.0

    Hi all,
    I would like to search a word and its corresponding page number in my PDF document. The word may be occur in many of the pages and i have to collect all the page numbers and need to create bookmark for all of them.
    Eg: The word "Chennai" can be found in the pages 5, 6, 7 and10. Then I need to create bookmarks Chennai1 - Page 5, Chennai2 - Page 6 and so on...
    I have tried this with Acrobat 7.0 professional and it was working fine. But in 6.0 Professional i am not able to collect all the pages. Below I have given the code that i have used.
    Dim objFind As Acrobat.CAcroAVDoc
    Set objFind = CreateObject("AcroExch.AVDoc")
    Do While objFind.FindText("MyText", 0, 1, False)
                    Dim objPageView As Acrobat.CAcroAVPageView
                    Set objPageView = objFind.GetAVPageView
                    strPageNo = objPageView.GetPageNum + 1
                    If strPageNo = strPrevPageNo Then
                        intIncremental = intIncremental + 1
                    Else
                        intIncremental = 0
                    End If
                    If intIncremental > 50 Then
                        Exit Do
                    End If
                    If Val(strPageNo) < Val(strPrevPageNo) Then
                        Exit Do
                    End If
                    strPrevPageNo = strPageNo
    Loop
    Thanks in advance,
    Dhanasekaran. G

    Adobe no longer supports Acrobat 7 or earlier.

  • How are people searching for music now that the power search link is gone?

    How are people searching for music now that the power search link is gone?

    That info in my above post doesn't bring back Power Search
    I think this Discussion holds the answer https://discussions.apple.com/message/20451945#20451945
    Found it under iTunes U!  Don't know why the moved it from the main page but you will find it here.

  • When I try to print from my iPad I see a message "searching for printer" and then "no printer found.".  I have a printer application loaded and it finds my wireless printer.   How do I get the iPad to do the same so I can print from emails, the web, etc?

    When I try to print from my iPad I see a message "searching for printer" and then "no printer found.".  I have a printer application loaded and it finds my wireless printer.   How do I get the iPad to do the same so I can print from emails, the web, etc?  Thanks

    sandrafromsilver spring wrote:
    When I try to print from my iPad I see a message "searching for printer" and then "no printer found.".  I have a printer application loaded and it finds my wireless printer.   How do I get the iPad to do the same so I can print from emails, the web, etc?  Thanks
    Go to the following link:
    http://jaxov.com/2010/11/how-to-enable-airprint-service-on-mac-os-x-10-6-5/

  • How do I search for all "missing" tracks within the iTunes database?

    I found the dreaded ! of death, and sadly I verified the tacks indeed are not on my hard drive.
    Is there a way to sort on this tag so that I can see what else might be missing on my hard drive but remains in the database (sort of similar to how you can search for all tracks that have missing artwork)? 

    Thanks.  It works perfectly.
    URL for anyone else in need:  http://dougscripts.com/123

  • How do i search for a specific artist in iTunes store on iPhone 5?

    How do i search for a specific artist in iTunes store on iPhone 5?

    Open the iTunes app > Search > then type the Artist's name

Maybe you are looking for

  • BAPI_ACC_DOCUMENT_POST line item text SGTXT not updating

    Hi, We have copied following LSMW for opening balance upload from ECC 5  to ECC 6. When we upload through LSMW (BAPI_ACC_DOCUMENT_POST ) which is used for uploading opening balances of G/L accounts field Long Text (Tech Name: ITEM_TEXT) not updating.

  • PhotoStream Question

    Ok, this is driving me crazy. I have PhotoStream enabled on my iPhone and MacBook Air, all PhotoStream pictures show fine on my iPhone (63 pictures) but only 42 show in iPhotos (Photo Stream) on my MBA, why is that? Thanks!

  • Issue while giving Print out

    Hi all,          I have a user who has all the administrative rights and also the rights for purchasing. When he tries to take print outs of GRPO, the system gives a message that the user is not permitted to do this action. Also, the user has full au

  • Phatfusion's Image Menu, how to get it to work?

    I have found several code changes on the internet, which are all different, but still cannot get it to work. Can anyone please give a thorough description, step by step, on what changes to make and where to make them? I get the part where you have to

  • MacBook Pro Won't wake after going to sleep.

    I have been having this issue for quite sometime now. My 15" MacBook Pro (Late 2008) will go to sleep and then not respond when trying to wake. This only happens when my computer goes to sleep with the display open (usually when watching DVD's or wri