Title: Re: Question for the script wizards ;)
This from Dan Frakes - dated 6/5/02 08.23 pm:
> I was thinking of a script that would ask you what
> address you would like to use as the return address, then edit a dummy
> account accordingly, and then set the "From" account in the current message
> to that dummy account. Is this possible/doable?
Hi, Dan. I'm currently groping my way around the Entourage scripting dictionary, and this looked like an interesting challenge, as I have an account that works like your 'frakes.org' domain.
Here's what I came up with after a quick dabble (there are probably far more efficient ways to do the same thing). It asks you for a name to go before the @ symbol, and then tweaks the dummy account accordingly and opens a new message from that account. As it stands, you have to enter the recipient's address, but with a little more work I'm sure it could get it from a selected message.
tell application "Microsoft Entourage"
activate
display dialog "Enter a name to go before the '@' symbol:" default answer ""
set theName to the text returned of the result
if theName is not "" then
set theAddress to email address of POP account "Generic"
set n to offset of "@" in theAddress
set theDomain to text n thru (count of text items in theAddress) of theAddress
set email address of POP account "Generic" to theName & theDomain
make new outgoing message with properties {account:POP account "Generic"}
open the result
end if
end tell
It's not quite what you asked for (which was changing the 'from' info for an outgoing message that's already open), but that's bound to be possible. However, it's late here in the UK, and the pot's run dry.
Mr Tea
--
- Question for the script wizards ;) Dan Frakes
- Re: Question for the script wizards ;) Mr Tea
- Re: Question for the script wizards ;) Dan Frakes
- Re: Question for the script wizards ;) Barry Wainwright
- Re: Question for the script wizards ;) Allen Watson
- Re: Question for the script wizards ;) Paul Berkowitz
- Re: Question for the script wizards ;) Allen Watson
- Re: Question for the script wizards ;) Dan Frakes
- Re: Question for the script wizards ;) Allen Watson
