Re: Safari "do javascript" busted?
Re: Safari "do javascript" busted?
- Subject: Re: Safari "do javascript" busted?
- From: "D. Mahaffy" <email@hidden>
- Date: Tue, 26 Apr 2005 10:13:52 -0400
Daniel-
Thanks for that tip, the "unescape" works like a champ!
I'd like to know if this information has been documented by Apple
anywhere. Methinks it would be a good idea to post said changes as
they are not reflected in Safari's AppleScript dictionary. I'd have
been lost w/o JavaScript gurus who know the code and can figure this
stuff out!
Again, many thanks.
--
Best,
Darren
MacSurfer
------------------------------
Message: 15
Date: Mon, 25 Apr 2005 20:50:47 -0700
From: Daniel Jalkut <email@hidden>
Subject: Re: Safari "do javascript" busted?
To: Richard Brosnahan <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi - I saw a similar problem discussed on the macscript mailing list.
In response to that issue I tinkered a bit and discovered that
modifying the javascript to use "unescape(getSelection())" instead of
"getSelection()" seems to work around the problem.
For some reason Safari seems willing to return the text from unescape
but not from getSelection() directly.
Hope this helps,
Daniel
------------------------------
_______________________________________________
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