Yup, you were right. It was a conflict with Satimage.osax (Macintosh HD:Library:Scripting Additions), which also had a find text dictionary listing. (This was installed when I installed the app "Smile."). Thanks for helping me sort this out. -Bob On Mar 12, 2013, at 7:50 PM, Christiaan Hofman wrote:
> > On Mar 12, 2013, at 18:00, Robert Silverstein wrote: > >> 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. > > I wonder if you have some scripting extension installed that messes the > language up. Because those errors make no sense to me. Having said that, > AppleScript errors usually don't make much sense. > > Christiaan > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Skim-app-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skim-app-users On Mar 12, 2013, at 7:50 PM, Christiaan Hofman wrote: > > On Mar 12, 2013, at 18:00, Robert Silverstein wrote: > >> 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. > > I wonder if you have some scripting extension installed that messes the > language up. Because those errors make no sense to me. Having said that, > AppleScript errors usually don't make much sense. > > Christiaan > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Skim-app-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skim-app-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
