Re: Moving IMAP messages in Entourage
Re: Moving IMAP messages in Entourage
- Subject: Re: Moving IMAP messages in Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 04 Jul 2003 02:01:26 -0700
On 7/3/03 10:36 PM, "Matthew Smith" <email@hidden> wrote:
>
I am trying to use AppleScript to move a message from an IMAP inbox to a
>
folder in "On My Computer". Nothing happens, not even an error message.
>
Here's the code:
>
>
tell application "Microsoft Entourage"
>
set msg to item 1 of (get selection)
>
move msg to folder "abc"
>
end tell
>
>
When I try it to a folder on the IMAP account. I get the error message:
>
"Microsoft Entourage got an error: Some data was the wrong type."
>
>
tell application "Microsoft Entourage"
>
set msg to item 1 of (get selection)
>
move msg to folder "abc" of IMAP account "email@hidden"
>
end tell
>
>
Is there something I am missing, or is it a bug with Entourage?
'move' as well as 'duplicate' are commands from the Standard Suite which
_must_, by definition, return a result (the moved or duplicate message).
Also, in AppleScript, the next command will not run until the previous
command has finished, which means return a result in commands that require
it. IMAP servers, or some of them, do not reliably return a result.
Therefore 'move' and 'duplicate' have not been implemented for IMAP
messages. It's not actually a bug, but rather an undocumented missing
implementation. (What is a bug is that in Entourage X even duplicating an
IMAP message to a local folder errors - it shouldn't.)
I have often requested proprietary 'move on server' and 'duplicate on
server' commands which do not expect a result, if this problem can't be
solved in any other way. (Although I suspect it could, since Mail.app can
move and duplicate messages on IMAP servers and get results.) Please send a
feature request via Help menu/Send Feedback to get these important
AppleScript implementations, which seem to get forgotten.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.