Mysterious OSX Mail scripting problem
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