realbasic-nug
[Top] [All Lists]

Re: Applescript help?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Applescript help?
From: Matthias Buercher <reader at belle-nuit dot com>
Date: Thu, 31 Jan 2002 03:38:21 +0200
>I want to automate my SN Generator so that entourage automatically calls an
>applescript which passes the body of the email to my realbasic app. Right
>now I have it so that my realbasic program takes the body from the clipboard
>and then processes the info, generates the email body and by an applescript
>create and sends the SN. I just want to automate the first part. Any
>pointers on how to do this?
>
>Right now I have a script that I can call from the realbasic app that will
>get the body of the current message. The part that I am having trouble is
>making the script so that it sends the body to my program. I thought that I
>could just do the below, but it is not seeming to work.

do you want to write the body or the whole email message with subject and 
adress?
in the second case you need to know the script commands of entourage to 
create also this fields.
some ideas: 
- it may  be easier to write the whole SN generation within applescript 
to stay within entourage.
- you may use a special account only for registering mails and implement 
the mail client directly into your app. i think there are some classes in 
the MWRB section.
- if your SN code is simple enough so that you can write it in RBScript, 
you may also check out my registration code example of Belle Nuit 
Textfilter. in this case, you simply drag the mail to a global window and 
drag back a mail body to entourage. if you have less than 5 licenses a 
day, this may work for you. 
<http://www.belle-nuit.com/textfilter/examples/registrationemail.html>

matthias



-----------------------------------------------------
matthias buercher  belle nuit montage  fax 4112742114
matti at belle-nuit dot com        http://www.belle-nuit.com   
-----------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>