我正在编写一个AppleScript来在我的主Mail窗口中选择几个邮箱。我有两个消息查看器窗口,如下所示:
我有以下代码:
tell application "Mail"
set frontViewer to front message viewer
set selectedBoxes to selected mailboxes of frontViewer
end tell
当我运行它时,我得到结果:{mailbox "Mailboxes/Pending" of application "Mail"}
Mail vsn 9.3(build 3124),在El Capitan 10.11.6上运行。