I was trying to write a script to do a "find" in a pdf, and output all of the page numbers where that text was found (to generate an index for a book, where the search terms are already in an array). I found of couple of example scripts that I thought I could modify, but I am having problems within Script Editor/Script Debugger. If I open the example script (the one I am using is called "highlight occurrences of text") and execute it, it runs fine. The second that I attempt ANY editing to the script (insert a return at the top to start defining my own variables), I get the following script errors: When it gets to the step that says "set theSel to find text theText" it tells me that the search term doesn't understand the find text message. If I change that line to "set theSel to find (text theText)" it will let me compile past that point, but then when it gets to the step "the theSel to find text theText from theSel" it refuses to compile, with the error that it expected the end of line, etc. but found "from." - like it doesn't recognize that this is a valid dictionary command. So it doesn't make sense that the script will run from within either Script Editor or Script Debugger when I first open the script, but if I do anything to the script that require a re-compile, it won't recompile. Any ideas? -Bob (please also respond to [email protected]) thanks.
------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
