Re: getting selection in Safari
Re: getting selection in Safari
- Subject: Re: getting selection in Safari
- From: Timothy Bates <email@hidden>
- Date: Tue, 31 Jan 2006 11:24:56 +0000
- Thread-topic: getting selection in Safari
> Excuse my ignorance, but is it possible that one cannot get a reference to
> the selection in Safari?
It is easy:
tell application "Safari"
do JavaScript "unescape(getSelection())" in document 1
end tell
The unescape function is there to coerce the object returned by
getSelection() into a string, which Safari does not do by default.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden