Re: Mail: Move message to another mailbox
Re: Mail: Move message to another mailbox
- Subject: Re: Mail: Move message to another mailbox
- From: Michelle Steiner <email@hidden>
- Date: Tue, 25 Feb 2003 16:34:53 -0700
On Tuesday, February 25, 2003, at 04:03 PM, Tom Tidland wrote:
Am I supposed to consider this an insult?
"set foo" ?
no.
The point I was making is that using the mail dictionary command
"move"
One would think the code would be...
move message at mailbox "name" to mailbox "other_name"
Well, first of all, message is an element of mailbox; as such, there
may be more than one message in the mailbox, so you have to specify
which message by numeric index, etc., as shown in the dictionary:
message by numeric index, before/after another element, as a range of
elements, satisfying a test
As move is in the dictionary.
Yes, one would think that it would work, but when I found that it
didn't work, I looked for something that does work.
I read the dictionary and found that mailbox is a property of message:
mailbox mailbox -- The mailbox in which this message is filed
Therefore, setting the mailbox of the message "moves" the message to
the specified mailbox.
I've seen this paradigm in other applications; it is a fairly common
usage in object-oriented systems.
foo is not. Neither is bar.
foo and bar are variable names, that I use for expediency when I do not
want to take the time to use more meaningful names. They've been used
for years, if not decades.
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
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.