Re: ? selecting text in a pdf page
Re: ? selecting text in a pdf page
- Subject: Re: ? selecting text in a pdf page
- From: Shane Stanley <email@hidden>
- Date: Sat, 17 May 2003 21:03:09 +1000
On 17/5/03 8:22 PM +1000, Michael Cytrynowicz, email@hidden, wrote:
>
I tried everything I could think of, plus looked in the Acrobat dictionary -
>
to no avail.
>
>
Is it at all possible to use applescript to select / get text from an open
>
pdf page?
>
>
I just wanted to rename that pdf filename using the selected text (and
>
making sure its less than, say, 127 chars) - adapting a neat script that
>
does this for Tex-Edit (OK, I know its no comparison ;-)
It's not pretty, but:
tell application "Acrobat 5.0"
activate
goto document 1 page 1
select text AVPageView 1 of document 1 from words {1, -1}
execute menu item 5 of menu 2
set theText to (get the clipboard as string)
end tell
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.