how to modify all tel numbers in the Entourage contact database?

D

denis

Anybody knows how one could add a "1" at the beginning of all tel
numbers in Entourage?
thanks,

denis
 
B

Barry Wainwright

Anybody knows how one could add a "1" at the beginning of all tel
numbers in Entourage?
thanks,

denis


Run this script (no need to save it, just run it from the script editor
window):

http://tinyurl.com/6tq4g

If that URL doesn't load the script, copy/paste it from here:

tell application "Microsoft Entourage"
repeat with aContact in every contact
tell aContact
if home phone number > "" then set home phone number to "1" &
home phone number
if other home phone number > "" then set other home phone number
to "1" & other home phone number
if home fax phone number > "" then set home fax phone number to
"1" & home fax phone number
if business phone number > "" then set business phone number to
"1" & business phone number
if other business phone number > "" then set other business
phone number to "1" & other business phone number
if business fax phone number > "" then set business fax phone
number to "1" & business fax phone number
if pager phone number > "" then set pager phone number to "1" &
pager phone number
if mobile phone number > "" then set mobile phone number to "1"
& mobile phone number
if main phone number > "" then set main phone number to "1" &
main phone number
if assistant phone number > "" then set assistant phone number
to "1" & assistant phone number
if custom phone number one > "" then set custom phone number one
to "1" & custom phone number one
if custom phone number two > "" then set custom phone number two
to "1" & custom phone number two
if custom phone number three > "" then set custom phone number
three to "1" & custom phone number three
if custom phone number four > "" then set custom phone number
four to "1" & custom phone number four
end tell
end repeat
end tell
 
D

denis

I tried it; it doesn't work.
I get a message from Entourage: " A script is trying to access
contacts, etc... Do you want to allow access? I clicked on "OK". then
I got the same message,.. over and over... Script Editor sent me this
message: " Microsoft Entourage got an error: every contact doesn't
understand the count message"
 
P

Paul Berkowitz

I tried it; it doesn't work.
I get a message from Entourage: " A script is trying to access
contacts, etc... Do you want to allow access? I clicked on "OK". then
I got the same message,.. over and over... Script Editor sent me this
message: " Microsoft Entourage got an error: every contact doesn't
understand the count message"

Go to Preferences/Security/ and uncheck the 3 Warnings there if you're going
to use scripts (in particular the 3rd one for this script). Then you won't
get those errors.

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
Top