Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Move Mail messages to IMAP folder via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Move Mail messages to IMAP folder via AppleScript
Authored by: aardvarko on Oct 22, '08 08:28:36AM
With long operations, a timeout parameter helps them complete without errors:

tell application "Mail"
    with timeout of 90000 seconds
        set theSelectedMessages to selection
        repeat with theMessage in theSelectedMessages
            set theMailbox to "[Gmail]/Sent Mail"
            tell application "Mail"
                move the theMessage to mailbox theMailbox of account "Gmail IMAP"
            end tell
        end repeat
    end timeout
end tell


[ Reply to This | # ]
Move Mail messages to IMAP folder via AppleScript
Authored by: mchmarny on Apr 02, '09 08:09:43AM

Dude, two days into the process of moving my emails I find this. The timeouts were killing me.

---
mark@chmarny.com



[ Reply to This | # ]