• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Safari "do javascript" busted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari "do javascript" busted?


  • Subject: Safari "do javascript" busted?
  • From: Richard Brosnahan <email@hidden>
  • Date: Mon, 18 Apr 2005 17:31:32 -0400

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?

TIA
--
Richard Brosnahan
Editor in Chief
Broz News
http://broznews.org

I love the man who can smile in trouble, who can gather strength from distress, and grow brave by reflection.
Thomas Paine, statesman


_______________________________________________
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


  • Prev by Date: Scripting in quark...
  • Next by Date: Re: How to Renew DHCP Lease
  • Previous by thread: RE: Scripting in quark...
  • Next by thread: Re: Safari "do javascript" busted?
  • Index(es):
    • Date
    • Thread