Mail questions.
Mail questions.
- Subject: Mail questions.
- From: Michael <email@hidden>
- Date: Mon, 17 Dec 2007 00:02:48 -0800
Hi Everyone,
I am writing a little utility ( in RB) to scan Mail for Duplicates and
Spam. I wish to incorporate 2 aspects, which I wish to implement
through AS ( so that Mail will know when things have been changed).
The first is creating Child Mailboxes in scanned Mailboxes. I think
the script is as follows.
tell application "Mail"
make new mailbox with properties {name:"ParentMailbox/NewChildMailBox"}
end tell
Is this the way the esteemed AScripters would do it?
Second question pertains to obtaining a ref to a "found" email that
needs to be moved.
I would like to use the id ( not message-id). ( I assume the id is
the "name" of the message as seen in the finder window eg 99034.emlx).
So,....issue 1.
Is the id unique to Mail or to the MailBox....in other words, when
referencing the email, is
message ID:integer enough, or does it need to be
message ID:integer of Mailbox "Foo".
Lastly, this code, causes an AppleEvent "Handler Failed" Any help
would be appreciated.
tell application "Mail"
move (message {id:100291} of mailbox "Bar") to (mailbox "Foo")
end tell
thanks in advance
_______________________________________________
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