applescript changes to selected contacts?

S

silverbelly

Running OSX 10.3.6, Office 2004.

I would like to be able to select certain contacts in my Address Book,
and make batch changes to them. I suspect Applescript is the way to do
this, but i have no idea how.

I have the field "Custom 1" label rename "Christmas List", and would
like the value to be either Yes, or No.
I want to select certain contacts and then batch change them to a value
of "Yes".
Any ideas on how i could script this? It seems simple enough to me,
but i don't know how.
Thanks.
John
 
P

Paul Berkowitz

I have the field "Custom 1" label rename "Christmas List", and would
like the value to be either Yes, or No.

tell application "Microsoft Entourge"
set theContacts to the selection
repeat with theContact in theContacts
set custom field one of theContact to "Yes"
end repeat
beep
activate
display dialog "All done!"
end tell

I want to select certain contacts and then batch change them to a value
of "Yes".

Is this something different, or are you repeating yourself? I don't
understand how you would change a contact to a value of "Yes". A contact is
an object.
Any ideas on how i could script this? It seems simple enough to me,
but i don't know how.

What is it that seems simple then? I don't understand what you're hoping to
do.


--
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.
 
S

silverbelly

Paul said:
tell application "Microsoft Entourge"
set theContacts to the selection
repeat with theContact in theContacts
set custom field one of theContact to "Yes"
end repeat
beep
activate
display dialog "All done!"
end tell

Thanks very much. This seems to work perfectly when i tested it on a
few contact. Sorry, if i was confusing in my previous post, but this
is exactly what i was after. Thanks again!
 
Top