Christiaan Sorry for using poor logic and a big thanks for pointing me in the right direction. I had tried (all day) to use the "get index for" command but I was using it against the List item object. I did not understand that I had to first get the page from the object and then get the index from the page. In the end I used
set thePageNo to (get index for thepage) My script is now complete and working, thanks again. Is there a site to post working AppleScripts for others to use? best wishes Simon On 24 Oct 2009, at 18:15, Christiaan Hofman wrote: > <Snip> >> >> I reason that if Script Debugger is able to extract the page number >> then so should AppleScript. > > Why? The fact that some program can extract some number does not > mean that AppleScript has a way to extract that number. Script > Debugger is not written in AppleScript, it's a (probably Cocoa) > program. > >> Any idea how it may be achieved? >> >> best wishes and thanks >> Simon > > > Anyway, Skim's scripting support does have a way to extract the > index, namely the "get index for" command. So you'll have to get the > page for the selection returned by the find command (get pages for) > and then get the index for that page. > > Christiaan > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
