我是 Applescript 的新手,我遇到了一个问题。我的邮件“收件箱”中有多个文件夹。但是,我只想选择其中一个收件箱来运行脚本。
这就是我所拥有的。但是,我似乎找不到 Gmail 帐户的收件箱。
有任何想法吗?
set _ago to (current date) - days
set _inbox to "Inbox:Gmail"
tell application "Mail"
move (messages of _inbox whose read status is false and date received comes before _ago) to mailbox "Gmail - Unread"
move (messages of _inbox whose date received comes before _ago) to mailbox "Gmail - Archive"
end tell