Blogs
Books
- Metaprogramming Elixir by Chris McCord
Official Documentation
#!/usr/bin/osascript | |
on run | |
if not (application "Mail" is running and application "The Hit List" is running) then | |
return | |
end if | |
tell application "Mail" | |
repeat with _account in imap accounts | |
set _inbox to _account's mailbox "INBOX" | |
set _messages to (a reference to (every message of _inbox whose flagged status is true)) | |
-- We must use this workaround, because the reference will self-update once we unflag a message, and that will get us just one of two flagged messages imported |
Blogs
Books
Official Documentation