Re: text to dark pdf
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