• 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
Re: What are the elements listed in a dictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What are the elements listed in a dictionary?


  • Subject: Re: What are the elements listed in a dictionary?
  • From: John Delacour <email@hidden>
  • Date: Fri, 21 Mar 2003 23:26:24 +0000
  • Mac-eudora-version: 6.0a12

At 4:00 pm -0600 21/3/03, Jeffrey Mattox wrote:

I must have dozed off during an important lesson, so I need some remedial training. I am confused by the "elements" shown in an AppleScript dictionary. Unlike the properties list, I've found nothing useful about the elements list.

For example, a text field has properties such as "text color" and "bezeled," so I know I can access and manipulate those properties of my text fields.

A text field also has elements such as "movie view" and "progress indicator." What does this mean, and how can I use this information?

I think of elements as things that the object _contains_ as opposed to its properties. For example "message" might be an element of "mailbox" -- the mailbox contains messages -- but "name" is a property of "mailbox" that you can change, provided it's not read-only. Meanwhile the elements that "mailbox" contains will have their own properties, so you can

set <some property> of <some element> in <some class> to <some value>

If you look at examples in various dictionaries, you'll find that the dinstinction will become clear. It's an important distinction and does take a bit of grasping.

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >What are the elements listed in a dictionary? (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: Sine of the times: Much better window shaker
  • Next by Date: Re: Sine of the times: Much better window shaker
  • Previous by thread: What are the elements listed in a dictionary?
  • Next by thread: Re: What are the elements listed in a dictionary?
  • Index(es):
    • Date
    • Thread