• 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
Help Testing a Mail Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help Testing a Mail Script


  • Subject: Help Testing a Mail Script
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 28 Sep 2012 15:15:11 -0500

Hey Folks,

This little bit of code has worked well for years.

tell application "Mail"
tell (some message viewer whose index is 1)
set selected messages to {}
end tell
end tell

But I seem to have a problem on Mountain Lion.

If I select some messages in a mailbox and run the script they are de-selected as they should be.

BUT if I immediately repeat the process the script throws an error on my machine:

   Mail got an error: Container specified was an empty list.

Would someone mind testing this for me?

I've tried it from FastScripts, Keyboard Maestro, Script Debugger, and the Applescript Editor.

Thank you.

--
Best Regards,
Chris

 _______________________________________________
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: Help Testing a Mail Script
      • From: Axel Luttgens <email@hidden>
    • Re: Help Testing a Mail Script
      • From: James Roberts <email@hidden>
  • Prev by Date: Re: Weird message saving to desktop
  • Next by Date: Re: Help Testing a Mail Script
  • Previous by thread: Re: Weird message saving to desktop
  • Next by thread: Re: Help Testing a Mail Script
  • Index(es):
    • Date
    • Thread