1
我是Applescript的新手,我遇到了一個問題。我的郵件「收件箱」中有多個文件夾。但是,我想只選擇其中一個收件箱來在其上運行腳本。AppleScript在Apple Mail中選擇特定的收件箱
這是我的。但是,我似乎無法找到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
這解決了我的問題,這與OP的問題是一樣的。謝謝。 OP應該將其標記爲答案。 – h4ckNinja 2016-07-02 20:39:29