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:17:25 -0700
On Dec 31, 2007, at 4:26 PM, m wrote: I am trying to repeat a loop with "mail" as follows:
tell application "Mail" --set myNum to 0 --repeat while myNum < 9 set theMSG to ( first message whose message id is " email@hidden") of ( mailbox "INBOX" of account "Qwest") move theMSG to mailbox "Qwest_INBOX_Duplicates" --myNum = myNum + 1 --end repeat end tell
Try this:
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?
-- Michelle
-- Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming, "WOW! What a ride!!!"
|
_______________________________________________
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