我正在尝试使用苹果脚本访问我的邮件中的文件夹。但没有成功。
我的文件夹名称是:BLABLABLA,它位于 Apple Mail 下。
我认为应该是:
set myDir to mailbox "BLABLABLA"
这不起作用,有什么建议吗?
我正在尝试使用苹果脚本访问我的邮件中的文件夹。但没有成功。
我的文件夹名称是:BLABLABLA,它位于 Apple Mail 下。
我认为应该是:
set myDir to mailbox "BLABLABLA"
这不起作用,有什么建议吗?
这将检索帐户邮箱
tell application "Mail"
set AccountNames to name of accounts
choose from list AccountNames with prompt "Select the email account" ¬
without multiple selections allowed
set AccountName to result as string
set MailboxesListV to mailboxes of account AccountName
end tell
这就是我认为你想要的。(请注意,结果是一个列表。)
我希望它有所帮助。