On or near 8/6/03 7:07 AM, Paul Berkowitz at [EMAIL PROTECTED] observed:

> You could change his first line to:
> 
>     set ourStaff to every contact whose company contains "widgets"
> 
> or whatever is appropriate, using the same "rough approximation" that you
> might do in an Advanced Find. 'contains' is case-insenstitve so it will
> include "Widgets" as well as "widgets".
> 
> Alternately, to make it a little less automated, you could do an Advanced
> Find instead, using various "if ANY criteria are met"  and use your judgment
> to select only those contacts in the Search Results which really are ones
> you want to change, excluding the others. Then the first line would be
> 
>     set ourStaff to the selection
> 
> 
> However, if you're pretty sure of "widgets" or any other determinant, you
> could actually do this much faster with this script:
> 
>     tell application "Microsoft Entourage"
>         set company of (every contact whose company contains "widgets" or
> company contains "associated") to "Our New Name"
>     display dialog "All done!"
>     end tell
> 
> 
> No repeat loop needed when done that way.

True. I was assuming that they wanted to change, not just the company name,
but also the e-mail addresses of people in the company, as Michael indicated
in the original message. My intention was to get Michael to experiment on
his own with AppleScript a bit...the more people who know how to script
Entourage, the better!
-- 
Microsoft MVP for Entourage/OE/Word (MVPs are volunteers)
Allen Watson <[EMAIL PROTECTED]> Entourage FAQ site:
<http://www.entourage.mvps.org/>
AppleScripts for Outlook Express and Entourage:
 <http://members.thinkaccess.net/[EMAIL PROTECTED]/Scripts/>
Entourage Help Pages: <http://www.entourage.mvps.org/>


-- 
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/>

Reply via email to