Delete address doesn't delete from group

S

stein.jane

I think Entourage used to delete an address from a group when that
contact was deleted from the address file. What happens now, at least,
is that the person is not deleted from the group but is blue-dotted to
indicate that they're no longer in the address book. Any way to delete
from both simultaneously?

Thanks, Jane
 
P

Paul Berkowitz

I think Entourage used to delete an address from a group when that
contact was deleted from the address file. What happens now, at least,
is that the person is not deleted from the group but is blue-dotted to
indicate that they're no longer in the address book. Any way to delete
from both simultaneously?

You're right: I'd guess it's by design, maybe even by user demand, to avoid
irrevocable loss of data. But maybe it's just the unintended by-product of
other changes or improvements. You have to do it separately: once to remove
the entry (contact or not) from the group, and once to delete the contact.
You can save some searching by doing it from the group: double-click the
entry there to open the contact window, click the Trash button in the
contact window toolbar to delete the contact, then click Remove in the open
Group window (where the entry now has a blue dot.

It's annoying that you can't do it from the main Address Book. It's a
limitation generally that you can't find a contact's groups from the contact
itself, only the other way around (get the contact from the group). If you
could, then you could more easily delete the contact from its groups.

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

Paul Berkowitz

You're right: I'd guess it's by design, maybe even by user demand, to
avoid irrevocable loss of data. But maybe it's just the unintended
by-product of other changes or improvements. You have to do it separately:
once to remove the entry (contact or not) from the group, and once to
delete the contact. You can save some searching by doing it from the
group: double-click the entry there to open the contact window, click the
Trash button in the contact window toolbar to delete the contact, then
click Remove in the open Group window (where the entry now has a blue dot.


It's annoying that you can't do it from the main Address Book. It's a
limitation generally that you can't find a contact's groups from the
contact itself, only the other way around (get the contact from the
group). If you could, then you could more easily delete the contact from
its groups.


Well, you could do it by selecting the contact and then running this script:

tell application "Microsoft Entourage"
try
set theContact to item 1 of (get selection)
if class of theContact ‚ contact then error number -128
on error
beep
display dialog "First select a contact." buttons {"Cancel"} default
button 1 with icon 0
return
end try
try
set {dName, eAddress} to theContact's {name, default email address}
on error
beep
display dialog "This contact \"" & name of theContact & "\" does not
have an email address, and thus is not the member of any group." & return &
return & "Just delete the contact." buttons {"Cancel"} default button 1 with
icon 2
return
end try
set theContent to {address:eAddress, display name:dName}
set itsGroups to {}
repeat with theGroup in (every group)
if (content of every group entry of theGroup) contains {theContent}
then
set groupEntry to (first group entry of theGroup whose content
is theContent)
delete groupEntry
end if
end repeat
delete theContact
beep 2
display dialog "Done!" buttons {"OK"} default button 1 with icon 1
giving up after 3
end tell


Paste into Script Editor, and save it as a script to the Entourage Script
Menu Items folder in the MUD folder. Check "About the script menu" in
Entourage Help if you want to give it a keyboard shortcut. Just remove the
lines with the dialogs (and the beeps) if you don't want them.
--
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