Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Emailer: Getting sender in an Applescript

0 views
Skip to first unread message

Joel Cunningham

unread,
Dec 2, 1997, 3:00:00 AM12/2/97
to

WARNING!!! NEWBIE QUESTIONS AHEAD!!!!!


I'm trying to get the sender and subject of a filtered message in an
applescript so I can send it in a new outgoing message.

This is what I have:

>tell application "Claris Emailer"
>
> set theMessage to the filtered message
>
> set addrVar to "999...@sprintpaging.com"
> set addrNameVar to "Joel Cunningham"
> set subjectvar to sender of theMessage
> set bodyvar to subject of theMessage
>
> make new outgoing message with properties ¬
> {subject:subjectvar, content:bodyvar, scheduled:true,
recipient:{{address:{address:addrVar,
> display name:addrNameVar}, recipient type:to recipient}}}
>
>end tell

The statement "set bodyvar to subject of theMessage" works fine.

However, "set subjectvar to sender of theMessage" results in a "can't get
sender" message.

Can anyone tell me what I'm doing wrong? This is only the second time I've
messed around with Applescript and it's driving me batty...

Also, how do I tell it to "Send Now" instead of the default "Queue Message"?

TIA for any help!!!

-Joel

--
***************************************
* Microsoft. *
* Why 2001 won't be like "2001". *
***************************************

0 new messages