Select specific IMAP subfolder in Applescript

A

automandc

Entourage 2008 fully patched.

I am trying to write an applescript that will periodically archive older
messages from my Exchange Account to an IMAP account. I have already
determined that Entourage does not support creating new IMAP folders through
AppleScript. However, I am looking for a way to simply select an existing
folder on the IMAP account.

I have tried, e.g.,

set destFolder to folder "2008" of folder "Sentmail" of folder "Archives" of
IMAP account "Mail Storage"

But that threw an error. In fact, asking for any "folder of IMAP account"
fails. The only way I can access the IMAP folders is to set a list to "every
folder of IMAP Account 'foo'", which includes both top level and subfolders.
Even then, the only way I can find the one I want seems to be stepping
through each one and checking the name. For 200 folders this takes approx. 5
minutes to run, which is unacceptable.

So, is there a quick way to do the equivalent of

Entourage 2008 fully patched.

I am trying to write an applescript that will periodically archive older
messages from my Exchange Account to an IMAP account. I have already
determined that Entourage does not support creating new IMAP folders through
AppleScript. However, I am looking for a way to simply select an existing
folder on the IMAP account.

I have tried, e.g.,

set destFolder to folder "2008" of folder "Sentmail" of folder "Archives" of
IMAP account "Mail Storage"

???
TIA
 
A

automandc

I realize my original message was a little garbled due to a pasting error.
Can anyone help me do the equivalent of the following in Entourage?

set destFolder to folder "2008" of folder "Sentmail" of folder "Archives" of
IMAP account "Mail Storage"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top