• 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 got an error: NSArgumentsWrongScriptError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mail got an error: NSArgumentsWrongScriptError
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Newbie help needed: capturing keypress to record QuickTime timing
  • Next by Date: Re: Mail got an error: NSArgumentsWrongScriptError
  • Previous by thread: Newbie help needed: capturing keypress to record QuickTime timing
  • Next by thread: Re: Mail got an error: NSArgumentsWrongScriptError
  • Index(es):
    • Date
    • Thread