• 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
Re: text to dark pdf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text to dark pdf


  • Subject: Re: text to dark pdf
  • From: "J. Stewart" <email@hidden>
  • Date: Wed, 7 Oct 2009 04:41:31 -0400

On 10/7/09 at 11:13 PM, Rounak Jain <email@hidden> spake thusly:

>On Oct 7, 2009, at 12:43 AM, Timofey Danshin wrote:
>
>>Well, apparently it is not possible to do that in Camino. Or,
>>at least, i do not know a way to do that. But is there any
>>reason not to use Safari?
>Safari does not have a way to get selected text of all text from a web page without UI scripting
>_______________________________________________


This works without UI scripting.

tell application "Safari"
	activate
	set theTxt to do JavaScript " window.getSelection() + ''" in document 1
end tell

John
--
There are two major products that come out of Berkeley: LSD and UNIX.  We don't believe this to be a coincidence.  -Jeremy S. Anderson
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: text to dark pdf (From: Rounak Jain <email@hidden>)

  • Prev by Date: Re: Visual Basic versus AppleScript
  • Next by Date: Re: spurious timeout on nth Apple event on Snow Leopard
  • Previous by thread: Re: text to dark pdf
  • Next by thread: Re: text to dark pdf
  • Index(es):
    • Date
    • Thread