on 8/8/03 8:58 AM, Paul Berkowitz wrote:
> That all depends what you inserted for "--Do stuff here". Allan left that
> for you to work out for yourself. I later provided a rather detailed version
> (two versions, in fact
> ) for you to use. What did you insert?
Haven't worked out how to change the email address (what would the syntax
for changing an existing email address?), however here is what I got:
tell application "Microsoft Entourage"
set ourStaff to every contact whose email address contains "@acme.com.au"
repeat with aContact in ourStaff
set company of aContact to "Acmes New Name"
end repeat
end tell
This runs, but changes nothing, no errors either.
whilst this works:
tell application "Microsoft Entourage"
set ourStaff to every contact whose company contains "Acme Widgets"
repeat with aContact in ourStaff
set company of aContact to "Acmes New Name"
end repeat
end tell
Michael
--
Mac-Oz, all Australian Macintosh Virtual Community
To join, send email to <[EMAIL PROTECTED]>
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>