Re: Mail got an error: NSArgumentsWrongScriptError
Re: Mail got an error: NSArgumentsWrongScriptError
- Subject: Re: Mail got an error: NSArgumentsWrongScriptError
- From: Michelle Steiner <email@hidden>
- Date: Mon, 31 Dec 2007 17:41:53 -0700
On Dec 31, 2007, at 5:30 PM, m wrote: 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
If it works, that's all that counts. 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?
Because I found that if the messages are in any of the default folders, by using "Message Viewer 1" I don't have to specify which folder or account they're in. I have to use a number because "Message Viewer" by itself without a number won't let the script run.
The only downside to this is that a message viewer has to be open.
By the way, to save yourself some typing, you can write "messages" instead of "every message"; they're synonymous.
-- Michelle
-- Tubal Litigation: Suing because of a misconception
|
_______________________________________________
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