• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subject: Re: ? selecting text in a pdf page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subject: Re: ? selecting text in a pdf page


  • Subject: Subject: Re: ? selecting text in a pdf page
  • From: Michael Cytrynowicz <email@hidden>
  • Date: Sat, 17 May 2003 20:00:28 +0200

Shane,

Awesome - thanks! - this returns all text for a given page.

Can I pick your brain a bit more?

Is it possible to set a variable to _some_ selected text in _some_ given
page - without having to specify what that page is?

Mike

P.S.: I enjoy your Photoshop comments and scripts off Adobe's PS AS forum,
too!




(Shane)

>> 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
_______________________________________________
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.

  • Follow-Ups:
    • Re: Subject: Re: ? selecting text in a pdf page
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: (no subject)
  • Next by Date: Sounds on OS X
  • Previous by thread: Mail.app & checking for new mail
  • Next by thread: Re: Subject: Re: ? selecting text in a pdf page
  • Index(es):
    • Date
    • Thread