Re: Making a new incoming message in a folder in Entourage
Re: Making a new incoming message in a folder in Entourage
- Subject: Re: Making a new incoming message in a folder in Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 17 Aug 2002 15:28:52 -0700
On 8/17/02 3:01 PM, "Simon Kornblith" <email@hidden> wrote:
>
This has been driving me crazy. I'm trying to make a new message in
>
Entourage with the source of a message in a specific folder, rather than
>
the default of the POP3 inbox (I use IMAP). However:
>
>
tell app "Microsoft Entourage" to make new incoming message at theFolder
>
with properties {source:theSource}
>
>
Gives an error:
>
Microsoft Entourage got an error: can't make a incoming message.
>
>
tell app "Microsoft Entourage" to make new incoming message with properties
>
{storage:theFolder, source:theSource}
>
>
Gives an error:
>
Microsoft Entourage got an error: a message can only be made in a folder.
>
>
return theFolder gives 'folder id 112 of application "Microsoft Entourage"'
>
and return name of theFolder gives "INBOX", so I'm pretty sure this is
>
indeed a folder.
>
>
Moving doesn't seem to work either:
>
>
set newMessage to make new incoming message with properties
>
{source:theSource}
>
move newMessage to theFolder
>
>
Gives an error:
>
Microsoft Entourage got an error: some data was the wrong type.
>
>
set newMessage to make new incoming message with properties
>
{source:theSource}
>
set storage of newMessage to theFolder
>
>
Simply doesn't do anything. The message is still in the POP3 inbox. No
>
error is returned.
>
>
Setting the account of the message doesn't seem to help.
>
>
Is there something I'm missing?
Yes, or rather, you're getting the message but don't want to accept it: you
can't make or move a message on an IMAP server.
All the commands you are using:
make
move
set
are commands from the Standard Suite, and ALL OF THEM RETURN A RESULT:
namely the message made or moved or set (or duplicated, which you didn't
try). The problem is that IMAP servers can't return results (at least not
reliably) so none of those commands have been implemented for IMAP messages.
Yes, you can make a local message based on an IMAP message, but not vice
versa. You should even be able to duplicate or move an IMAP message to a
local folder, and it's a bug that you can't: that will be fixed.
As feature request I have asked that Entourage developers create a new
command in the Entourage Suite 'copy on server' which doesn't expect a
result. Thus, you wouldn't be able to immediately access a message you just
copied there but perhaps there would be other ways to get at it (maybe delay
1 or 2 seconds, then get the last message whose subject is such-and-such).
Such is life: the amazing nature of IMAP messages - that you can control
messages miles away on a remote server almost as if it is on your computer -
brings its own limitations. It is perhaps obscuring the fact that the
message is not in fact on your computer so you don't get that instant
feedback which AppleScript requires. The fact that the Standard Suite
commands (except delete) expect a result allows you, normally, to so amazing
things.
I'm hoping that we can get a new command to allow us to do some more limited
things on the server. For now, you have to do without.
--
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.