Message headers not accessible via AppleScript anymore
| Originator: | adamnhjl | ||
| Number: | rdar://10438472 | Date Originated: | 13-Nov-2011 11:59 AM |
| Status: | Duplicate/9797770 | Resolved: | |
| Product: | Product Version: | Version 5.1 (1251/1251.1) | |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Trying to access the attributes 'name' and 'content' of message headers via AppleScript results in an error. Steps to Reproduce: Run the following AppleScript script: tell application "Mail" set h to item 1 of headers of some message of sent mailbox name of h -- or "content of h" end tell Expected Results: We should get the name of the first header of some sent message, e.g. "references", "content-type" or a similar string. Actual Results: The statement "name of h" fails. Example error message "Mail got an error: Can’t get header \"content-type\" of message id 1802754 of mailbox \"INBOX/Sent\" of account \"Runbox\"." number -1728 from header "content-type" of message id 1802754 of mailbox "INBOX/Sent" of account "Runbox" Regression: The issue seems to be independent from the type of message and account. I have tried this with various sent and received messages stored locally and on IMAP. Notes: This worked on Mac OS X 10.5 (and most likely also 10.6.)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!