• 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
Mountain Lion Mail Rules Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mountain Lion Mail Rules Problems


  • Subject: Mountain Lion Mail Rules Problems
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 17 Aug 2012 13:54:06 -0500

Hey Folks,

Is anyone use Applescript rules in Mail successfully in Mountain Lion?

I'm running tests today, and I keep getting failures with error messages like this:

------------------------------------------
Error: Can’t get «class mssg» 1 of «class mbxp» "Incoming POP Messages" of «class mact» "listmeister-suddenlink". Invalid index.
------------------------------------------
Error Number: -1719
------------------------------------------

Here's my current test rule:

using terms from application "Mail"
  on perform mail action with messages theMessages for rule theRule

    

    try
      tell application "Mail"
        repeat with eachMessage in theMessages
          set theSubject to subject of eachMessage

          

          tell application "BBEdit"
            activate
            tell text of front text window
              set after it to theSubject & return & return
              select insertion point after it
            end tell

            

          end tell
        end repeat
      end tell

      

    on error eMsg number eNum
      set {c, s} to {return, "------------------------------------------"}
      set e to s & c & "Error: " & eMsg & c & s & c & "Error Number: " & eNum & c & s
      beep
      set dDlg to display dialog e buttons {"Cancel", "Copy", "OK"} default button "OK"
      if button returned of dDlg = "Copy" then
        set the clipboard to e
      end if
    end try
  end perform mail action with messages
end using terms from

Thanks.

--
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

  • Prev by Date: Re: Set variable to contents of incoming message
  • Next by Date: Re: Behaviour of scripting and Mountain Lion
  • Previous by thread: Set variable to contents of incoming message
  • Next by thread: Re: Behaviour of scripting and Mountain Lion
  • Index(es):
    • Date
    • Thread