• 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
Referencing a Message in Mail 6.1 - Huh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Referencing a Message in Mail 6.1 - Huh?


  • Subject: Referencing a Message in Mail 6.1 - Huh?
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 01 Oct 2012 19:56:22 -0500

Hey Folks,

I can scriptomatically acquire a reference to a message in the form shown below and use it later in the script, BUT if I simply paste the reference into a script it won't compile.

 tell application "Mail"

    message id 392140 of mailbox "INBOX" of account "test" of application "Mail"

 end tell


WTH?

Shouldn't I be able to reference it directly and do something like:

 tell application "Mail"
    tell message id 392140 of mailbox "INBOX" of account "test" of application "Mail"
        get its source
    end tell
 end tell

I know I can work around this by doing:

  tell application "Mail"
      tell item 1 of (messages of mailbox "INBOX" of account "junksieve" whose id is 392140)
          get its source
      end tell
  end tell

But that seems ridiculous.

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

  • Follow-Ups:
    • Re: Referencing a Message in Mail 6.1 - Huh?
      • From: Deivy Petrescu <email@hidden>
    • Re: Referencing a Message in Mail 6.1 - Huh?
      • From: Axel Luttgens <email@hidden>
  • Next by Date: DropBox Toggle
  • Next by thread: Re: Referencing a Message in Mail 6.1 - Huh?
  • Index(es):
    • Date
    • Thread