Re: Safari "do javascript" busted?
Re: Safari "do javascript" busted?
- Subject: Re: Safari "do javascript" busted?
- From: kai <email@hidden>
- Date: Mon, 25 Apr 2005 22:23:47 +0100
On Mon, 25 Apr 2005 00:03:13 -0400, "D. Mahaffy" wrote:
I've also had issue with "getSelection()" with Safari 1.3. It
flat-out doesn't work. Don't know if syntax has changed or not,
perhaps others who know more have the answer.
[snip]
On Apr 19, 2005, at 3:21 AM, Richard Brosnahan wrote:
I have a script embedded in an AppleScript Studio app that has been
working properly for quite awhile. I updated my OS to 10.3.9, and now
my calls to Safari using the do javaScript command fail to return any
values. Executing these same javascripts within the browser work just
fine. One in particular is just dirt simple, yet does not work any
more.
tell application "Safari"
set pTheStory to do JavaScript "getSelection();" in document 1
end tell
fails to set pTheStory to any value whatsoever.
Can anyone provide some advice?
The following might interest those affected:
----------------------------
Cocoalicious and Safari 1.3
Observant users of Cocoalicious who have updated to Mac OS X 10.3.9 may
notice a problem with the “New Post from Safari” feature: namely, the
selected text on the page is no longer captured. This problem is
caused by an unfortunate regression in both Safari 1.3 and Safari 2.0:
the Javascript “getSelection()” call no longer works properly when
invoked through Safari’s “do javascript” AppleScript command. Rest
assured, there is a bug in Radar for it, and hopefully it will get
fixed at some point.
----------------------------
Source (item 3):
http://weblog.scifihifi.com/
---
kai
_______________________________________________
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