• 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: Christopher Stone <email@hidden>
  • Date: Thu, 29 Oct 2015 06:33:10 -0500

On Oct 28, 2015, at 12:49, David Crowe <email@hidden> wrote:
Using smile may be the best solution … but the “all occurrences” flag didn’t seem to work for me. I search for a simple 3 letter string (“FCC”) in a PDF file that had about 20 occurrences and it only produced one of them.
______________________________________________________________________

Hey David,

You should post your code when saying such things, so we can test.

This works quite robustly for me using Smile 3.8.0 (build 929) on OSX 10.11.1.

-------------------------------------------------------------------------------------------
set _file to alias ((path to home folder as text) & "test_directory:pdf_test_files:test.pdf")
set fRec to find text "USD" in _file with regexp, all occurrences and string result without case sensitive
-------------------------------------------------------------------------------------------

This too.

-------------------------------------------------------------------------------------------
set _file to alias ((path to home folder as text) & "test_directory:pdf_test_files:test.pdf")
set fRec1 to find text "USD" in _file with regexp without case sensitive
set newStartingPoint to (matchPos of fRec1) + 1
set fRec2 to find text "USD" in _file starting at newStartingPoint with regexp, all occurrences and string result without case sensitive
-------------------------------------------------------------------------------------------

--
Best Regards,
Chris

 _______________________________________________
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: Re: PDF Search
  • Next by Date: RE: PDF Search
  • Previous by thread: Re: PDF Search
  • Next by thread: RE: PDF Search
  • Index(es):
    • Date
    • Thread