• 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
Mysterious OSX Mail scripting problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mysterious OSX Mail scripting problem


  • Subject: Mysterious OSX Mail scripting problem
  • From: David Crowe <email@hidden>
  • Date: Thu, 24 May 2018 12:45:27 -0600

The following script fails for one of my email accounts. The email works fine
in OSX Mail, and the message appears to be retrieved properly (first comment)
but it generates an error when I try to reach inside the message in any way
(I’m trying to get at the attachments, but I can’t even get the subject). Any
ideas?

- David Crowe


tell application "Mail"
        set theList to selected messages of first message viewer whose index is
1
        set aMessage to first item of theList
        aMessage --> «class mssg» id 407896 of «class mbxp» "INBOX" of «class
mact» "IFAST"
        subject of aMessage --> Mail got an error: Can't get mailbox "INBOX" of
account "IFAST".
end tell

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

 _______________________________________________
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: Mysterious OSX Mail scripting problem
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: PDF Watermark Issue
  • Next by Date: Re: Mysterious OSX Mail scripting problem
  • Previous by thread: Re: PDF Watermark Issue
  • Next by thread: Re: Mysterious OSX Mail scripting problem
  • Index(es):
    • Date
    • Thread