re: PDF Search
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,SteveSteve McCarthyBloomberg Media Groupemail@hidden
------------------------------Message: 3Date: Tue, 27 Oct 2015 17:21:07 -0400From: Steven McCarthy <email@hidden>To: email@hiddenSubject: PDF SearchMessage-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 giventext 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 headaround the solution. I'm scripting in Acrobat 11.0.12 on a Mac running OS10.8.5 using Applescript v2.5.1I've been trying both Acrobat and Skim with no luck so far. Any helppointing me in the right direction would be greatly appreciated.Regards,SteveSteve McCarthyBloomberg Media Groupemail@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