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 -------------------------------------------------------------------------------------------
|