Setting the default signature in Entourage
Setting the default signature in Entourage
- Subject: Setting the default signature in Entourage
- From: email@hidden
- Date: Tue, 26 Oct 2004 17:39:10 -0400
Hi all,
In my quest to provide my department here with an easy way to configure
Entourage with Exchange accounts when setting up a computer, I'm writing a
Studio app that gets the name of the user and their password, determines their
email address (firstname.lastname) and creates the account. Everything works
fine, except for setting the default signature. I'm currently using this code:
tell application "Microsoft Entourage"
--set sigRef to a reference to signature 1 (*I've also tried this instead of
the next line*)
copy (a reference to signature 1) to sigRef
make new Exchange account with properties {name:(gLastName & "'s Exchange
Account") as string, Exchange server:gMailServerAddr, Exchange ID:gLastName,
password:pass, domain:"tlpeast.com", free busy server:gPublicAddr, include in
send and receive all:true, full name:gFullName, email address:emailAddress,
SMTP server:"wilmail.tracylocke.com", LDAP server:"wilton-pdc", default
signature type:other, default signature choice:sigRef}
end tell
I've confirmed that all variables in the make new Exchange account statement are
correct. If I remove the "default signature choice" item of the properties, the
account is created and all is well. With that item in the properties, I get
"Microsoft Entourage got an error: Expected a reference. (-1727)"
My app copies the standard company signature file to the appropriate location in
Microsoft User Data before launching Entourage, and there is only one signature
in the list. The code
tell application "Microsoft Entourage"
name of signature 1
end tell
returns the correct name.
Can someone point me in the correct direction here? It would be much
appreciated.
Thanks!
--
Chris Garaffa
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden