how to read an specific page into pdf document?

Francis Nugent Dixon effendi at wanadoo.fr
Thu Oct 20 06:03:27 EDT 2011


Hi from Beautiful Brittany,

Thanks to Ken Ray for his "close to a one-liner".


> put char 1 to 3 of field "MyPagesC" into GVPage
> put "tell app " & quote & "Skim" & quote & cr & \
>  "set " & LVDeskTop & " to path to desktop as string" & cr & \
>  "open (" & LVDeskTop & " & " & quote & "SkimTest1.pdf" & quote &  
> ")" & cr & \
>  "tell document 1" & cr & "go to page " & GVPage & cr & \
>  "set result to (get text for page " & GVPage & ") as text" & cr & \
>  "end tell" & cr & "end tell" into GVMasterScript
>
> do GVMasterScript as AppleScript
> put char 2 to -2 of the result into field "MySkim"
> show field "MySkim"

>

I have added Kens small correction to his post of yesterday
(he gave me the correction off-forum)

Great Stuff - Works a treat !

Sigh ! - I have a long way to go to master AppleScript ...

-Francis

"Nothing should ever be done for the first time !"






More information about the use-livecode mailing list