Selected groups in address book

How to return the names (or ids) of selected groups in Address Book?

I got responses from other sources that Address Book will not return selected groups.
So I did this instead ( How to post a script without loosing formatting? )
-- copy to clipboard
-- email addresses of selected group(s)
tell application "Address Book"
set group_list to name of every group
set _groups to choose from list group_list ¬
with title "Address Book Groups" multiple selections allowed true ¬
OK button name "Select Groups"
set elist to ""
set enum to 0
repeat with ggg in _groups
repeat with ppp in person in group ggg
try
set elist to elist & value of email 1 of ppp & return
set enum to enum + 1
end try
end repeat
set elist to elist & return -- separate groups
end repeat
set the clipboard to elist
display dialog "Copied " & enum & " addresses to the clipboard" default button "Ok" buttons {"Ok"}
end tell
-----

Similar Messages

  • How to create a group in address book from a mail folder

    I have a mailbox folder in mail with about 100 emails. I want to add all of these email addresses to a new group in address book app. How can I add all of theses at one time to a new group. I dont want to add each email address one at a time. Is there a way to select all of my mail and just make a new group from that?

    One of Andreas Amann's Mailscripts will do the address harvesting - I don't know if it puts them in a group.
    AK

  • How can I get smart group in address book to email?

    digimurr
    Feb 15, 2012 9:58 AM
    Hi
    I'm trying to send an email out to a smart group I created which has about 150 members.  I right click send email while in the address book.  The group ends up in the 'To:' field.  I do a 'cmd A' to select all and move them to the 'bcc' field.  I put my email address in the 'To' field.  I create the subject line and body text which containes a url and an image with a url link.
    When I press send it immediately moves to my outbox and sits there with no activity showing in the MAIL ACTIVITY preview pane.... I've left it for quite a while thinking it might take a while but nothing changes.
    When I send it to my self only it works.   I've tried taking a smaller group last names A-C 30 recipients and it does the same thing.
    Would appreciate some help if you have had the same problem or maybe know what I've done wrong.  Oh, I've also tried it sending it out on me.com and shaw.ca email accounts...
    Thanks
    Murray Brown
    Using Lion 10.7.3
    Imac 27
    I7
    8 gig ram
    1 TB drive
    iMac (27-inch Mid 2011), Mac OS X (10.7.3)

    If you want to "send an email" to the group, you need to get the group into your email client's Contacts first...
    Select your Group > Select All
    From Address Book.App "Help" (±10 years old)
    *See emphasis below* -
    Importing and exporting vCards
    A vCard, or "virtual address card," is a standard method of exchanging data between applications. Address Book can create and read vCards, so if you have another application that also works with the vCard format, you can import or export addresses as vCards.
    Also, you can send your own card to other people in vCard format. They can use the vCard to add your information to their address books.
    You can also use vCards to add addresses to the Contacts list on your iPod.
    To create a vCard, drag an address card out of the Address Book window.
    To add someone else's vCard to your address book, drag it into the Address Book window.
    To create a single vCard with multiple entries, drag more than one card out of the Address Book window.
    To create multiple vCards at the same time, hold the Option key when dragging multiple cards out of the Address Book window.
    You can also work with vCards using commands in the File menu.
    Address Book also supports Lightweight Directory Interchange Format (LDIF). LDIF is an ASCII file format used to exchange information and enable synchronization of that information between Lightweight Directory Access Protocol (LDAP) servers. You can't export information from Address Book in LDIF format; you can only import it. Address Book can import and export vCards.
    To determine the format of a document, select the document and choose File > Get Info. The format, or kind of document, is listed at the top.
    If another application won't accept vCards in the default 3.0 format, try changing the format to 2.1 in the vCard pane of Address Book Preferences, and send the vCard again.
    ÇÇÇ

  • Add receipients of message as group in address book

    ok, this seems simple, but once again, Mac disagrees and makes it impossibly complicated. I typed in about 15 email addresses for a mass mailing I did in Mail recently, and I want to save these people as a group. I'll send emails to them all again in the future. here are the problems I've encountered:
    1. when I select all the addresses in the "sent" message header, and then select "add to address book," it only adds one of the addresses. ridiculous.
    2. even if I was to add them individually, I would then need to manually create a new group in address book, and then add each address one by one. again, ridiculous.
    3. one suggestion on here was to export my entire address book, then delete all entries, add the ones from the message, save them as a group, then re-import the original addresses. again, and again, ridiculous.
    why is this so difficult? am I missing something?

    figured it out. when in doubt, drag.
    highlight the entries you want to save, open address book, create a new group name, and drag the entries from mail and drop them on the group. done.

  • Syncing Smart Groups from Address Book

    Spent a lot of time creating a smart group in address book, only to find that iphone sync doesn't recognize "Smart Groups", only regular groups. Maybe the engineers can write some script to fix this little bugaboo to have the sync software recognize smart groups from Address Book and place them in the box so that the user can select the smart group and not have to sync the whole address book. Thanks.
    tjrmac

    Yes. Please. It would be great if the syncing of smart groups were to be added. Right now with the large amount of address' I manage for business, it's important that I see the same groups on my iPhone.
    Please add.

  • I added a group to Address Book, but it doesn't show up in Mail addresses.  Why?

    I added a group to Address Book, but it doesn't show up in Mail's addresses.  Why?  In the past, any groups I added to Address Book or changes I made in Address Book showed up in Mail's addresses, but not this time.

    Do you have any videos/movies in the video app?
    In iTunes if you right click on the video and select Get Info and go to the Option tap what Media Type is shown?

  • Using a smart address group from Address Book

    I might be asking sth already been answered but I cant find it, so sorry,  but how do you send an email to a group of contacts who have been grouped by a Smart Group in Address Book? Address Book's help says
    If you don’t have a group of addresses, create one.
    Creating groups or foldersChoose File > Send Updates.
    In the dialog that appears, select the group or groups you want to notify.
    Type a subject title and a message, and then click Send.
    The trouble is that Send Updates is grey-ed out - see below!
    What? How am I meant to follow those instructions if the menu option is grey-ed out?
    Helen.

    Helen,
    In your original question, your screen shot shows that the active application is AddressBook, and you are trying to use its File menu. The option you discuss is for sending updates of your own address card, not for sending out group emails. In other words, if you change your own contact details in AddressBook, you can send the new contact details out using this menu option. I hope that this is what you intended, rather than simply sending out an email to a [Smart] group as others have discussed.
    However, I cannot get the 'Send Updates' option in the File menu to be disabled in the way you have managed. I note that you are still in the edit mode on the current contact in the screen shot (the Edit button has blue text instead of black). I also note that 'Save' in the File menu is enabled, implying that you have a currently unsaved change somewhere. Maybe one of these issues is preventing you sending out your new contact details.
    I expect by now that you have sorted this out yourself. If not, have you tried closing AddressBook and re-opening to resolve the unsaved issue?

  • Adding contacts to group in address book

    Arghhh - I searched for Address Book in this support site and they said no matching entries!!!
    So before I "upgraded" to Lion, I could drag a whole bunch of emails into a group in Address Book.  It now will not let me do that! (I hate Lion!)
    Does anyone have a work-around for this?  I sent an email to 50 people and I want to create a group from these emails without importing them one by one and then manually adding each one to a group..
    There must be a way to do this! (And of course "Help" for address book has nothing about this.)
    Thanks,
    Marty

    What is your existing method for adding these contacts? If you are for example selecting a sender's email address in Mail and using "Add to Address Book" then you can't hook in to that process. If on the other hand you are working directly in Address book, adding a card and then fill it in, you could replace that with a script that would prompt for the necessary details, including group (with default Work Phone). You could even put a pretty front end on it with XCode.
    Alternatively you could periodically run a script to periodically trawl for contacts with no assigned group and move them to a default group for analysis. I posted one here recently.
    AK

  • Cannot send email to Smart Group from Address Book

    I created several Smart Groups in Address Book but I can't use any of them to send email. When I right-click the group name and choose Send Email, it opens my default email program (Thunderbird) and puts only the name of the Smart Group into the To: field, not the actual addresses.
    If I try to actually send the message, I get the error that (name of group) "is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the email."
    What am I doing wrong? How can I get it to paste the actual addresses and not just the name of the group? I looked at the Edit Distribution List window and all the addresses are there.
    I'm using OS X 10.5.7, Address Book 4.1.2 and Thunderbird 2.0.0.22.
    Thanks in advance.

    What is the exact message you get when sending fails -- does it say there are one or more invalid addresses, or what?
    Having a name in the list without email address or possibly one separated by comma between last and first might result similarly in an invalid address, and Mail will likely refuse to send to any. But if the message is from the SMTP, that might depend on the provider's policies for that.
    Ernie

  • How can I add multiple addresses to a group within address book?

    I realize you can add in addresses by going to 'Message' then 'add Sender to Address Book,' but what I'm interested in doing is within Apple Mail, adding multiple addresses into a specific group within address book. I've tried to do this using mail scripts but keep getting an error.
    Is it possible to do this?
    Thanks.
    David

    So far, FWIW all I've got is individual AddToAddressBook, then in AB itself, drag and drop one by one from the main list into the desired group.

  • Sharing certain groups in address book rather than the whole address book

    Hi
    I haven't got server yet in our office but we are looking to do this. Currently we just share calendars and other bits and pieces but I'm looking to get server in place. Sharing the address book requires giving a user our iCloud password and letting them look at the address book as a whole. We really only want to share certain phone numbers like our company staff phone numbers rather than our financial clients and other sensitive contacts.
    Is it possible to only allow a "user" to access certain, or 1 group in address book rather than the whole address book library itself by using osx server
    Many thanks

    Hi Jaime,
    I just wanted to jump in here with a quick question... on Mac OS X Server my understanding was that with the open directory, you can't designate organizational groups for the ldap service. Without that ability, how are you limiting what ldap users can see?
    In our setup, our LDAP settings would be similar to
    cn=users,dc=example,dc=com
    What format would you use to say show only members of the group "examplegroup"?
    Thanks!

  • Color code groups in address book

    Is there any way to color code groups so that when mail comes in I know to associate it with a specific group. I was able to do this in entourage but have switched to apple mail.

    As already described, create a new Rule in Mail.app (Mail -> Preferences -> Rules), that reads:
    if (ANY) of the following conditions are met:
    (Sender is member of group) (xxxxxxxxx)
    Perform the following actions:
    (Set Color) (Of Background (or text as you prefer) to (Any color you wish)
    Save the rule.
    Before doing that, you might want to create a few Groups (or Smart Groups) in Address Book with the people you want to color.
    Hope this helps.
    Message was edited by: Martin Marconcini (changed sqared brackets for parenthesis)

  • Creating a group in address book from a group of emails

    Hello,
    I would like to create an email group in Address Book from a list of email addresses that was sent to me.
    The scenario:  I receive an email from our team manager for my son's baseball team.  Listed in the "To:" header in the email are the 20 email addresses for the parents.  I would like to copy/paste those emails or highlight/drag them into a new Group created in Address Book.
    How do I do this without adding each individual email into the address book and then dragging each individual contact into the Group?
    Thanks,

    I too am looking for a solution. I found this script on another thread that worked but would rather a more direct connnection.
    http://www.andreasamann.com/MacOSX/Mail_Scripts.html Add Addresses script.

  • HT2486 Can't delete a group in address book and import is greyed out.

    I cannot delete a group from address book and when I choose file>import, import is greyed out and not accessible?  Any thoughts?

    I have the same question. Such a simple action!  APPLE  help!!! 
    Used to love this brand!

  • Unable to delete group in address book

    I am trying to delete a group in address book. I use the menu option (Edit/Delete Group) but the group does not go. The group is empty - I removed all addresses in it.
    Am I missing something?
    Thanks

    Hello again:
    That file is in your home folder ( ~ library>preferences). That should not delete anything. However, although I move something to the trash, I wait a bit before emptying trash (you can always put something back where it came from).
    OS X rebuilds preference files (plist) as needed and sets them to default values. Preference files may (rare) become corrupted and cause all sorts of problems.
    You might also run repair disk from your software install DVD.
    Barry

Maybe you are looking for

  • To download the Output of ALV to Excel file with Marco

    Hello Masters , I m working on a ALV report in which either we can see the output or can download the ouptput and format that file before sending by mail.. the following steps are currently used to download and format the ALV output . 1. Save file fo

  • ODAC 11.1.0.7.20 per Win 64 bit

    Hello, I've developed a WebApplication using ODAC 11.1.0.7.20 per Windows 32 bit as available on oracle's site but now I cannot find the same library version for the target platform Win 2008 Server 64 bit. I only find ODAC 11.1.0.7.0 but the web appl

  • JFrame setUndecorated problem

    I set my JFrame undecorated like this: jframe.removeNotify(); jframe.setUndecorated(true); jframe.setVisible(true);This works great, only my textFields get unselectable when i use removeNotify(). When i don't use removeNotify, my frame doesn't get un

  • Batch Management Process Flow Diagrams

    Hi, please provide the process flow diagram of batch mangement in MM. any links or documents.... It's urgent... Thanks AK

  • How do I put a photo album onto a usb drive ?

    How do I put a photo albumonto a usb drive to hand in an assignment?