• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re: PDF Search
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: PDF Search


  • Subject: re: PDF Search
  • From: Steven McCarthy <email@hidden>
  • Date: Fri, 30 Oct 2015 07:34:22 -0400

Thanks to all for the great suggestions on the PDF search question.  I never knew there were so many options but am looking forward to investigating each of them from SMILE to GREP.  For now I went with the skim option.  Thanks to Deivy Petrescu for suggesting a simple and elegant TID and Skim solution which works flawlessly.  I was able to incorporate this routine into my script and successfully complete the project.

tell application "Skim"
        tell document 1 to set tt to its text
end tell

tid("plot")

set k to count text items of tt
return k - 1

on tid(x)
        set AppleScript's text item delimiters to x
end did

Thanks again all.  


Regards,

Steve


Steve McCarthy
Bloomberg Media Group
email@hidden

------------------------------


Message: 3
Date: Tue, 27 Oct 2015 17:21:07 -0400
From: Steven McCarthy <email@hidden>
To: email@hidden
Subject: PDF Search
Message-ID:
        <CAFY+RpQQpkkn=PYHQOaPYNSnmPVrrH=email@hidden>
Content-Type: text/plain; charset="utf-8"

Hi Guys,

Can anyone recommend a simple way to search an Acrobat PDF file for a given
text string and report back how many times that string appears in the PDF?

I know this sounds like a newbie question but I can't seem to get my head
around the solution.  I'm scripting in Acrobat 11.0.12 on a Mac running OS
10.8.5 using Applescript v2.5.1

I've been trying both Acrobat and Skim with no luck so far.  Any help
pointing me in the right direction would be greatly appreciated.

Regards,

Steve


Steve McCarthy
Bloomberg Media Group
email@hidden

 ______________________________
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Playing Sounds in AppleScript
  • Next by Date: Re: Playing Sounds in AppleScript
  • Previous by thread: RE: PDF Search
  • Next by thread: Visible on OSX 10.11.1
  • Index(es):
    • Date
    • Thread