Re: PDF Search
Re: PDF Search
- Subject: Re: PDF Search
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 27 Oct 2015 19:56:16 -0400
> On Oct 27, 2015, at 17:21 , Steven McCarthy <email@hidden> wrote:
>
> 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
> ______________________________
I tried this with a specific document in Skim.
May be Skim can’t get the text of your particular document.
Here it is:
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
——> 124
Deivy Petrescu
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
References: | |
| >PDF Search (From: Steven McCarthy <email@hidden>) |