Mail got an error: NSArgumentsWrongScriptError
Mail got an error: NSArgumentsWrongScriptError
- Subject: Mail got an error: NSArgumentsWrongScriptError
- From: m <email@hidden>
- Date: Mon, 31 Dec 2007 15:26:34 -0800
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
Here is what happens. The first time I manually run the sript, it finds and moves the email, as expected. I click run again. Get the error "Mail got an error: NSArgumentsWrongScriptError". If I click run again...acts normally. ( There are 8 identical emails in the mailbox). Any clue as to what is happening...
And...a happy new year to all!!! |
_______________________________________________
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