• 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: Sun, 23 Mar 2003 11:37:04 +0000
  • Mac-eudora-version: 6.0a13

At 11:12 am +0100 23/3/03, Brennan wrote:

What's important is that the elements describe the HIERARCHY of objects. In
other words it's meaningless to talk about 'message 3' without first referring
to its container object, which we know to be a mailbox.


-- meaningless (probably causing an error)...

tell application "myScriptableMailClient"
tell message 1
-- something
end tell
end tell


-- meaningful (correct hierarchy)...

tell application "myScriptableMailClient"
tell mailbox "spam"
tell message 1
-- something
end tell
end tell
end tell

Just to be picky, In the case of Eudora either of these will work, because in practice -- though I've only just noticed (shame on you, Cal Simone!) that 'message' is not listed as an element of application -- 'message' is an element of 'application' (Standard Suite) and of 'mailbox' (Eudora Suite).

There is a justification for this though, I think, in that Eudora Suite is in effect identical to Standard Suite/application.

So although this listing is deficient

Class application: An application program
Elements:
window by numeric index, by name, by ID
mail folder by numeric index, by name
setting by numeric index
personality by numeric index, by ID


these two both work and return different results, as they should.

tell application "Eudora"
get the sender of the front message in it -- of the application
--> "Brennan"
get the sender of the first message in mailbox ":In"
--> "Jane"
end tell
_______________________________________________
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: 
 >Re: What are the elements listed in a dictionary? (From: Brennan <email@hidden>)

  • Prev by Date: Re: Sorting Lists???
  • Next by Date: date from eudora to appleworks
  • Previous by thread: Re: What are the elements listed in a dictionary?
  • Next by thread: Fwd: applescript-users digest, Vol 3 #1487 - 15 msgs
  • Index(es):
    • Date
    • Thread