Results 1 to 4 of 4

Thread: Search OCR'ed PDF from Applescript

  1. #1

    Default Search OCR'ed PDF from Applescript

    Probably not really Eaglefiler question, but if it could use Eaglefiler's indexing then even better.

    I have an applescript that will set a record's title based on what it sees in the file (mostly OCR'd PDF so they have text overlays). I tried 'record's contents contains "something"' but it doesn't like the script.

    I tried grep or reading the file directly in applescript, but do not see the text that is visible and selectable in Eaglefile record viewer. Its probably encoded as something. Btw, Eaglefiler is able to find the text via its index.

    What's best way to do this ?

    thanks,
    bob

  2. #2

    Default

    Quote Originally Posted by bob View Post
    I have an applescript that will set a record's title based on what it sees in the file (mostly OCR'd PDF so they have text overlays). I tried 'record's contents contains "something"' but it doesn't like the script.
    I’m seeing weird behavior with the contents property, as well. However, it works for me when I use this construction:

    Code:
    tell library document 1
        set _id to id of _record
        set _contents to contents of library record id _id
    end tell

  3. #3

    Default

    yep, that worked! Thanks again
    bob

  4. #4

    Default

    With EagleFiler 1.5 there is a new text content property, which should work when contents doesn’t.

Similar Threads

  1. Search should search tags as well
    By edalzell in forum EagleFiler
    Replies: 3
    Last Post: 10-16-2008, 06:04 PM
  2. Search anywhere doesn't search tags?
    By phren0logy in forum EagleFiler
    Replies: 8
    Last Post: 10-16-2008, 05:09 PM
  3. Replies: 4
    Last Post: 03-11-2008, 03:19 PM
  4. Replies: 2
    Last Post: 05-30-2007, 11:54 AM
  5. Replies: 8
    Last Post: 03-12-2007, 12:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •