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: