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 !"
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode