Change email address of existing entourage account

Not applicable

Hi All,

I am not best scripter and was hoping someone out there could help me out.
Basically need to change everyones email address in entourage from
*.co.ukto *.com

I have been trying to amend the entourageSetup.scpt that comes with the
resource kit to fit my requirements but no luck.
If there is anyone out there that could help me with this, it would be much
appreciated...

Regards,

Myron Joffe

4 REPLIES 4

talkingmoose
Moderator
Moderator

Although AppleScript can handle this the user is going to have to be
On 7/7/11 6:29 AM, "Myron Joffe" <myronjoffe at gmail.com> wrote:
involved no matter what. Entourage settings for a user can only be
modified while Entourage is running and only for that person using
Entourage at the time. These settings cannot be modified in the background.

My suggestion is that you spend your effort on an awareness campaign with
your users to change their own addresses in Entourage rather than relying
on a script. The alternative is to spend your effort on an awareness
campaign with your users to run a script to make the changes.

If you still want to go the script route you can do something like:

tell application "Microsoft Entourage" set oldAddress to email address of exchange account 1 set firstPart to characters 1 through -6 of oldAddress as string set newAddress to firstPart & "com" set email address of exchange account 1 to newAddress
end tell

This essentially gets the old email address, lops off the last five
characters "co.uk", appends "com" to the end and sets the Exchange email
address in the account to the new address. You'd need to save this as an
application, distribute it to your users and get them to double-click it.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

Not applicable

Thanks for the script William, I would like to go down that root and educate
the users to double click the script rather than navigate through account
settings.

The problem is, we have multiple domains. I should have been clear about
this in the beginning... But I need to rename whatever they have Eg *@
uk-email.co.uk or *@ukgroup-email.co.uk(there are a couple others) to *@
email.com

I hope im making sense, your help is greatly appreciated.

talkingmoose
Moderator
Moderator

Then this should get you there:

tell application "Microsoft Entourage"

set oldAddress to email address of exchange account 1

set AppleScript's text item delimiters to "@"

set firstPart to word 1 of oldAddress

set AppleScript's text item delimiters to ""

set newAddress to firstPart & "@email.com"

set email address of exchange account 1 to newAddress

end tell

Change the domain in line 6 to whatever you need.

This one lops off everything from "@" to the end and appends "@email.com" to what's left.

If it makes you feel any better you'd have to jump through the same hoops with Outlook for Mac too. I'm hoping we see better management control over user settings in the future. We'll see.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

Not applicable

Heres hoping, thanks for the script worked a treat!

Sent from my iPhone