• 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
Mail questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Mail questions.
      • From: Michael <email@hidden>
  • Prev by Date: Choose from list problems
  • Next by Date: How to associate a file with a script
  • Previous by thread: Re: Choose from list problems
  • Next by thread: Re: Mail questions.
  • Index(es):
    • Date
    • Thread