• 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
Getting 'content' of Mail message causing delays and errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting 'content' of Mail message causing delays and errors


  • Subject: Getting 'content' of Mail message causing delays and errors
  • From: Stephen Cronin <email@hidden>
  • Date: Tue, 12 Jul 2016 18:23:52 -0700

Experiencing behavior I do not understand.

macOS 10.11 using  ScriptEditor

The step which retrieves the content leads to errors in Console and the POD for quite a while (not the 2 minute timeout) but eventually the script does return the content…

How do I retrieve content of a message without throwing errors or enduring a delay?

Steve

________
set accountName to "Google"
set mailboxName to "INBOX"
set messageID to "email@hidden"
my accountMessageContent(accountName, mailboxName, messageID)

on accountMessageContent(accountName, mailboxName, messageID)
tell application "Mail"
set theAccount to first account whose name is accountName
tell theAccount to set theMailbox to first mailbox whose name is mailboxName
tell theMailbox to set theMessage to first message whose message id is messageID
set theContent to content of theMessage
end tell
return theContent
end accountMessageContent

__ CONSOLE
7/12/16 6:13:02.858 PM secd[511]:  securityd_xpc_dictionary_handler cloudd[626] copy_matching Error Domain=NSOSStatusErrorDomain Code=-50 "query missing class name" (paramErr: error in user parameter list) UserInfo={NSDescription=query missing class name}
7/12/16 6:13:02.858 PM cloudd[626]:  SecOSStatusWith error:[-50] Error Domain=NSOSStatusErrorDomain Code=-50 "query missing class name" (paramErr: error in user parameter list) UserInfo={NSDescription=query missing class name}
 _______________________________________________
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: Getting 'content' of Mail message causing delays and errors
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Scripting the Notes app
  • Next by Date: Re: Getting 'content' of Mail message causing delays and errors
  • Previous by thread: Re: Scripting the Notes app
  • Next by thread: Re: Getting 'content' of Mail message causing delays and errors
  • Index(es):
    • Date
    • Thread