Wayne Wayne Brissette schrieb amDon, 18. Mär 2004 mit Absender
[EMAIL PROTECTED]
>ff-musikbüro [EMAIL PROTECTED] on Thursday, March 18, 2004 stated:
>
>
>Old Script:
>
>>------------- beginn script ----------------
>>tell application "FileMaker Pro"
>> set new_address to cell "eMail Adresse" of current record
>> set new_subject to cell "Betreff" of current record
>> set new_content to cell "eMail Body" of current record
>>end tell
>>
>>tell application "Outlook Express"
>> activate
>> set new_message to make new draft window with properties ¬
>> {subject:new_subject, content:new_content, to
>> recipients:new_address} ¬
>>end tell
>>------------- end script ----------------
>
>New Script for PowerMail:
>
>------------- beginn script ----------------
>tell application "FileMaker Pro"
> set new_address to cell "eMail Adresse" of current record
> set new_subject to cell "Betreff" of current record
> set new_content to cell "eMail Body" of current record
>end tell
>
>
>tell application "PowerMail"
> set msg to make new message with properties {subject:new_subject,
>recipient:new_address, content:new_content}
> send msg
>end tell
>
>------------- end script ----------------
>
>The example I provide is very similar to one I use daily, so it should
>work out of the box. If for some reason you want PowerMail to be the
>application in the foreground, just insert an activate statement after
>the Tell Application statement.
>
>Wayne
>
>--
>"We should consider every day lost in which we have not danced at least
>once..."
>- Friedrich Nietzsche
>
>Live DAT & Music Page: http://homepage.mac.com/wayneb/
>Wayne's Music Calendar: http://ical.mac.com/wayneb/Music
>PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html
>
>Music Currently playing:
>
>
>
Thanks Wayne,
it works fine. First i was a little shocked, when I saw, that Powermail
sent the message immedately, but now I understood and changed the script
a little bit. I use your script now, when I want to send eMails fast and
without attachements. The modified script is in use, when I want to add
attachements. I have no idea yet, how I could add an attachement already
in Filemaker, so I have to send it to Powermail first, go there (I added
"activate") and attach the attachements and send manually (deleted "send
msg"). Thanks again, great help!
Here are the two scripts, just in case someone else wants to use them
------------- beginn script for immediate send ----------------
tell application "FileMaker Pro"
set new_address to cell "eMail Adresse" of current record
set new_subject to cell "Betreff" of current record
set new_content to cell "eMail Body" of current record
end tell
tell application "PowerMail"
set msg to make new message with properties {subject:new_subject,
recipient:new_address, content:new_content}
send msg
end tell
------------- end script for immediate send ----------------
------------- beginn script with stop ----------------
tell application "FileMaker Pro"
set new_address to cell "eMail Adresse" of current record
set new_subject to cell "Betreff" of current record
set new_content to cell "eMail Body" of current record
end tell
tell application "PowerMail"
activate
set msg to make new message with properties {subject:new_subject,
recipient:new_address, content:new_content}
end tell
------------- end script with stop ----------------
I tested them both, and it worked well. Thanks again.
Oh, by the way, to make it clear to everybody who wants to use these scripts:
"eMail Adresse" is the name in my database for the field with the email
address, "Betreff" is my name for the subject field and "eMail Body" my
name for the main text field. You have to replace those names with the
names that these fields have in your databases.
mit freundlichem Gruß,
med venlig hilsen,
med snill hensyn,
parhain terveisin,
met vriendelijke groeten,
serdecznie pozdrawiam,
con le considerazioni gentili,
con respectos amables,
com os melhores cumprimentos,
avec mes salutations amicales
and with kind regards
Florian Fürst
--
======================
ff-musikbüro
Florian Fürst
Berlinickestr. 6
D-12165 Berlin
Tel. +49-30-56739940
Fax +49-30-56739941
Mobil +49-179-9230923
eMail [EMAIL PROTECTED]
Website www.ffmusik.de
======================