• 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
Fwd: Safari 3 beta, tab object and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Safari 3 beta, tab object and AppleScript


  • Subject: Fwd: Safari 3 beta, tab object and AppleScript
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 13 Jun 2007 09:20:04 -0400

whups, meant to cc the list, although as Emmanuel said this is somewhat OT...

On 6/13/07, Emmanuel <email@hidden> wrote:
2/ I don't know a circumstance where getAttribute would be needed
instead of [blah] or .blah. If you know one, please tell me.

Well, "className" is such an example. The DOM methods are for arbitrary XML documents, not just HTML. So if you had, say, a college schedule DTD with something like this:

<course  className="Calculus" classNumber="2"  ...>

then neither course.className nor course['className'] would work (they
would look for a "class" attribute instead of the "className" one).

Other than that, I think obj[attr] will work in all cases.  There are
many examples where obj.attr won't work, though.

--
Mark J. Reed <email@hidden>
_______________________________________________
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
References: 
 >Re: Safari 3 beta, tab object and AppleScript (From: jj <email@hidden>)
 >Re: Safari 3 beta, tab object and AppleScript (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Safari 3 beta, tab object and AppleScript
  • Next by Date: Re: Safari 3 beta, tab object and AppleScript
  • Previous by thread: Re: Safari 3 beta, tab object and AppleScript
  • Next by thread: Property Value
  • Index(es):
    • Date
    • Thread