• 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
'do JavaScript' still broken in Safari 3 beta
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'do JavaScript' still broken in Safari 3 beta


  • Subject: 'do JavaScript' still broken in Safari 3 beta
  • From: has <email@hidden>
  • Date: Thu, 21 Jun 2007 12:55:12 +0100

On 20 Jun 2007, at 22:18, jj wrote:

Hi all,

Just a quick heads-up as I don't think anyone else has noted it yet:
'do JavaScript' appears to be broken in the Safari 3.0 beta
(G4/10.4.9). Example:

tell app "Safari" to do JavaScript "return 1" in document 1

Not a "real" bug. The parameter is now a "tab" (instead of a doc).

Further testing this morning:

tell application "Safari"
do JavaScript "document.title = 'hello'; return 1" in tab 1 of window 1
end tell


Window title changes as expected; still no return value though, so 'do JavaScript' is definitely broken. Feel free to file your own bug report on it; this is something that should've been caught by basic unit testing well before public beta.

...

FWIW, I'm also going to file a bug report on the general confusing mess that is Safari 3's object model. I'm fairly skeptical they'll bother fixing it, but at least I can say I did my bit.

On a related note, Mark Alldritt just put up a very good blog post on the need for a Scripting Interface Design guru to educate developers about the technology and help them design scripting interfaces that don't suck:

    http://www.latenightsw.com/blog/?p=32

Well worth a read. (I've already left my own 2c on the subject, of course.;)

Cheers,

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

_______________________________________________
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
  • Follow-Ups:
    • Re: 'do JavaScript' still broken in Safari 3 beta
      • From: jj <email@hidden>
References: 
 >Re: 'do JavaScript' broken in Safari 3 beta (From: jj <email@hidden>)

  • Prev by Date: Re: Amazon Web Services
  • Next by Date: Re: 'do JavaScript' still broken in Safari 3 beta
  • Previous by thread: Re: 'do JavaScript' broken in Safari 3 beta
  • Next by thread: Re: 'do JavaScript' still broken in Safari 3 beta
  • Index(es):
    • Date
    • Thread