script that can change the postal address of many contacts working at the same company in Entourage

D

DANIEL

One of our clients has moved to new headquarters. Does anyone know if
there is a script that can change the postal address of many contacts
working at the same company in Entourage 2004? We don't want to change
their phone numbers and email addreses though...

Thanks inadvance for your help!
 
B

Barry Wainwright

One of our clients has moved to new headquarters. Does anyone know if
there is a script that can change the postal address of many contacts
working at the same company in Entourage 2004? We don't want to change
their phone numbers and email addreses though...

Thanks inadvance for your help!

Select the messages and then run this script (change the 'address' first,
though!)


tell application "Microsoft Entourage"
set newAddress to {street address:"10 Downing Street", city:"London",
state:"", zip:"SW1A 2AA", country:"UK"}
try
set theSelection to selection
if not class of (get item 1 of theSelection) is contact then error
-1001
on error
display dialog "Select some contacts before running this script!"
buttons {"Abort"} default button 1
return
end try
repeat with theContact in theSelection
set business address of theContact to newAddress
end repeat
end tell
 
D

DANIEL

Select the messages and then run this script (change the 'address' first,
though!)

tell application "Microsoft Entourage"
set newAddress to {street address:"10 Downing Street", city:"London",
state:"", zip:"SW1A 2AA", country:"UK"}
try
set theSelection to selection
if not class of (get item 1 of theSelection) is contact then error
-1001
on error
display dialog "Select some contacts before running this script!"
buttons {"Abort"} default button 1
return
end try
repeat with theContact in theSelection
set business address of theContact to newAddress
end repeat
end tell

--
Barry Wainwright
Microsoft MVP (seehttp://mvp.support.microsoft.comfor details)
The Entourage User's WebLog has moved!
For hints, tips and troubleshooting go to <http://www.barryw.net/weblog/>

Thanks, Barry!
Sorry to bother you and excuse my ignorance, but can you send me step
by step instructions on implementing the script you sent?
Best regards,
Daniel
 
J

Jolly Roger

Sorry to bother you and excuse my ignorance, but can you send me step
by step instructions on implementing the script you sent?

1. Copy the script from here.
2. Run /Applications/AppleScript/Script Editor.
3. Paste the script into a new script window.
4. Save the script as a "script" to this folder:

/Users/you/Documents/Microsoft User Data/Entourage Script Menu Items

Now you can run the script from the script menu in the Entourage menu bar.
 
D

Diane Ross

Top