Re: Safari scripting
Re: Safari scripting
- Subject: Re: Safari scripting
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 27 Aug 2009 07:23:33 -0400
Your best bet here is probably gui scripting - fake a command-A
command-C and you're done. If that gets too much, maybe you can use
"do javascript" to run some js that uses the DOM to locate the
"meaningful" text and return it, but that's a rather more involved
enterprise.
On 8/27/09, Timofey Danshin <email@hidden> wrote:
> Hello.
> I want to create a button in Safari that would, when pressed, copy the text
> of the web-page open in Safari into a new Pages document.
> However, i don't need the whole page. I need only the "meaningful" part, so
> to speak. From looking at Safari's AppleScript Dictionary, I realized that
> it is impossible to get the names of page elements, or get elements by name
> or id. Is it so, or am i missing something? I am quite a newbie in this
> field.
>
>
> Thank you in advance,
> Best Regards,
> Timofey Danshin.
>
--
Sent from my mobile device
Mark J. Reed <email@hidden>
_______________________________________________
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