Title: Applescript works outside Entourage
Paul helped me on this the other day, got stuck, I am back again. Using E-rage 11.2.3
Running the below sends out an email, then deletes it. If I run this from the E-rage script menu, it will not take away the signature, if I run it from Script Editor it correctly behaves.
One final change I would like to make to this once it works is to set the reply to to something custom as well.
property emailAddress : ""
repeat while emailAddress is ""
display dialog "SMS?:" buttons {"Cancel", "OK"} with icon note ¬
default button 2 default answer emailAddress
set the emailAddress to text returned of the result
end repeat
tell application "Microsoft Entourage"
set defAccount to default mail account
set sigType to default signature type of defAccount
if sigType is other then set sigChoice to default signature choice of defAccount
set default signature type of defAccount to none
set MyMessage to make new outgoing message with properties ¬
{recipient:"[EMAIL PROTECTED]", subject:"SMS", content:emailAddress}
set default signature type of defAccount to sigType
if sigType is other then set default signature choice of defAccount to sigChoice
send MyMessage
-- Have to wait until the message is sent before you can delete
repeat while connection in progress
delay 2
end repeat
delete {MyMessage}
end tell
--
-------------------------------------------------------------
Scott Haneda Tel: 415.898.2602
<http://www.newgeo.com> Novato, CA U.S.A.
