Re: Mail got an error: NSArgumentsWrongScriptError
Re: Mail got an error: NSArgumentsWrongScriptError
- Subject: Re: Mail got an error: NSArgumentsWrongScriptError
- From: m <email@hidden>
- Date: Mon, 31 Dec 2007 16:30:04 -0800
thanks.
On Dec 31, 2007, at 4:17 PM, Michelle Steiner wrote: tell application "Mail" tell message viewer 1 set theMessages to (messages whose message id is "Some email@hidden") end tell move theMessages to mailbox "Quest_INBOX_Duplicates" end tell
I haven't tested it, so I don't know whether it will work, but I think it will.
But how did you get eight messages with the same message ID?
Just testing it......but, I do have ...through various mixing of emails from different computers..quite a few with the same IDs.. But, I think I found another way. What do you think of this? It works like a charm.
set msgs to every message of ( mailbox "INBOX" of account "Qwest") whose ( message id is " email@hidden") set mylistLengh to length of msgs set mylist to (items 2 thru mylistLengh of msgs) move mylist to mailbox "Qwest_INBOX_Duplicates" end tell
Michelle..I am curious...you always include "Message Viewer". Is this in case the user has more than one viewer open, or does it effect the code?
Happy new year! Michael. |
_______________________________________________
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