Title: Re: Problem setting message properties via AppleScript
On 1/19/01 8:01 AM, "Jim McCarty" <[EMAIL PROTECTED]> wrote:

Hello all,

This is probably something simple that I've missed, so please enlighten me.

I am trying to change the connection action of messages when I delete them by using the following code (I've compressed it by taking out all the variable usage into a single line):

if connection action of (item 1 of the (current messages as list)) is leave on server then
   set the connection action of (item 1 of the (current messages as list)) to remove at next connection

I get this error when trying to do this: Can’t get leave on server of connection action of incoming message id 5158

If I use just “
connection action of (item 1 of the (current messages as list))” in Smile, I get leave on server, but as soon as I try using it in a boolean condition, I get rejected.

The following code, however, works on the same message:

if read status of (item 1 of the (current messages as list)) is untouched then
   set the read status of (item 1 of the (current messages as list)) to read

What am I doing wrong? Why can’t I test for connection action?

TIA, Jim

Use (get current messages) instead of
the (current messages as list).

(And it's better to use a variable than to send the same AppleEvent twice.)

--
Paul Berkowitz

Reply via email to