• 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
Re: Mail Rules and getting ID number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail Rules and getting ID number


  • Subject: Re: Mail Rules and getting ID number
  • From: Martin Michel <email@hidden>
  • Date: Mon, 04 Apr 2011 17:23:35 +0200

Hi John,

I remember having a similar problem some time ago (on Mac OS X 10.5/4 ?). It was caused by the fact that Mail.app seems to assign the IDs of the eMail messages AFTER executing the rules. That's why I couldn't use the ID to search for the corresponding emlx file on the client's hard drive.

Best regards from Berlin,

Martin


Am 02.04.2011 um 01:51 schrieb John Haley:

When I tested my Mail script directly talking to Mail and using "Selection" my script was able to get the message id number, but when I save the script with the "using terms from" so it can work as a rule, it doesn't seem to be able to get the id number and the script fails.  I used display dialogs to determine that that is where the script is dying.  I have put both version of the script below.  The reason I am trying to get the id is so that I can get the path to the attachment.  There might be an easiery more dependable way to do this.

Any pointers appreciated,

John



 _______________________________________________
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 Rules and getting ID number
      • From: Tommy Bollman <email@hidden>
    • Re: Mail Rules and getting ID number
      • From: John Haley <email@hidden>
References: 
 >Mail Rules and getting ID number (From: John Haley <email@hidden>)

  • Prev by Date: Re: Very Irritating Open Handler
  • Next by Date: Getting Mail ID
  • Previous by thread: Mail Rules and getting ID number
  • Next by thread: Re: Mail Rules and getting ID number
  • Index(es):
    • Date
    • Thread