Re: Scripting Mail:get selection
Re: Scripting Mail:get selection
- Subject: Re: Scripting Mail:get selection
- From: cricket <email@hidden>
- Date: Mon, 24 Feb 2003 15:45:46 -0800
On Monday, February 24, 2003, at 15:11PM, John Delacour wrote:
These cover only a tiny fraction of the dictionary.
If it's a tiny fraction, then we must have a really large dictionary.
You may want to have it both ways, but you can't. :) For the benefit of
those on the list that is here to learn something, here's what the test
scripts on every Jaguar system do:
Display all Accounts and Preferences
- Gets every account and global preference that Mail has, creates a
new message, and presents the data as formatted output in the email
message
Create New LDAP Server
- Create a new LDAP server, setting all available parameters
Manage SMTP Servers
- Display and/or delete SMTP servers
Create New Message
- Creates a new message to any recipient, allowing the setting of the
signature, the sending account, the recipient, the content, including
adding an attachment.
Count Messages in All Mailboxes
- Iterates over all local and IMAP mailboxes, creating a report
showing the total message count and unread count in all mailboxes
Check My IMAP Quota
- Iterates over all IMAP mailboxes in a given account and totals up
the size of all messages in all mailboxes
Create New Mail Account
- Walks through the creation of a POP, IMAP, or .Mac account,
including account specific settings
All these together cover about 85% of the available terminology. I
checked.
Or versiontracker:
http://versiontracker.com/moreinfo.fcgi?id=16217&db=mac
I can learn nothing from run-only scripts!
You can learn what's possible, rather than misinforming people that are
here to get help about what you think Mail can't do. :)
Can you explain, for example, how focused messages works. I get no
further than {} after trying several things.
Class message viewer : (inherits from item) Represents the object
responsible for managing a viewer window
Plural form:
message viewers
Properties:
focused messages list -- List of messages currently being displayed
in the viewer
The 'focused messages' property displays focused messages (i.e. as a
result of a search or using the 'Focus On Selected Messages' command in
the View menu). This is poorly described in the dictionary. If you want
to get the messages being displayed, just ask the selected mailbox for
the messages it contains.
The point of even wanting to get focused messages is because search
results and focused messages are not mapped directly to a physical
mailbox, so it's useful to be able to get at them via scripting.
My suggestion (which I believe we're doing) is to rename this 'visible
messages' and have it always return what's showing in the viewer,
regardless if it's a simple mailbox selection or a focused list of
messages.
- cricket
_______________________________________________
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.