Hello,

I'd like to create a simple script to find the text that is copied to the 
Clipboard in a PDF that is opened in Skim.

This is my attempt, but it doesn't work:

tell application "Skim"
        set FindText to (the clipboard as text)
        
        tell document 1
                find text clipboard
        end tell
end tell

What I'd like to achieve is, copy text in a Java app, search for the text in a 
PDF so that the result is highlighted.

(Here is a similar script for Word DOCX:

tell application "Microsoft Word"
        set MyDoc to active document
        set FindText to (the clipboard as text)
        set findRange to find object of selection
        
        clear formatting findRange -- clear any previous formatting used in a 
find operation        
        set forward of findRange to true -- find forward        
        set wrap of findRange to find continue
        set foundIt to false --initialize found indicator                
        --this locates the text            
        tell findRange
                set foundIt to execute find find text FindText -- do the search 
true-found false-not found            
        end tell
end tell

)

Thanks,

Hans

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to