Set outgoing account based on address book group

Hello -- I am looking for a way to automatically set the account of new outgoing messages based on the address book group membership of the email recipient. For example, a script or rule that works something like:
If [any recipient] belongs to group [employer1] set message account [employer1];
If [any recipient] belongs to group [employer2] set message account [employer2];
If [any recipient] belongs to group [personal] set message account [personal];
etc.
Paul Berkowitz has written a very clever script to do exactly this for Entourage (see http://scriptbuilders.net/files/otheraccountx2.0.5.html) but I have been unable to locate an equivalent for Mail.app.
I would very much appreciate any suggestions regarding where to find (or how to build) a script, automator workflow, etc. that accomplished this task.
Thank you!
Adam

V.K. wrote:
for some reason it can only script changes to messages that were initiated by apple script. At least that has been my experience. I would be VERY happy to be proved wrong on this.
Thanks for the feedback. Assuming your point above is correct, is it possible to create a script or workflow that initiates a new outgoing email message then changes the account to something other than the default? For example, I might might disable [cmd-n] for new messages, then set up new shortcuts linked to simple scripts so that that [ctrl-cmd-A] would initiate a new message with the account set for Employer Alpha and [ctrl-cmd-b] would initiate a new message with the account set for Employer Beta. An alternative solution might be to write a script to replace the usual [cmd-n] with a simple dialogue box that forces me to make a conscious decision about the From account every time I initiate a new outgoing email message.
My goal here is to prevent a situation in which I forget to manually switch from the default account to the correct account for an outgoing message, thus inadvertently sending email from the wrong address. Either of the solutions I described in the paragraph above would meet my needs... might one or both of these might be possible?
Thank you again for your support,
Adam

Similar Messages

  • How can I copy the contents of an address book group

    Does anyone know how I can copy the entire contents of an Address Book group and paste the results into an e-mail to send to others? When I select the group and then the "copy" tool, it copies only the first address in the group. If I select "select all", it selects all e-mail addresses everywhere, not just the ones in the intended group.

    He did not want to add them all to his address book; he simply wanted to have my long list of staff email addresses without having to type it or create it himself, like this: [email protected], [email protected], [email protected], [email protected], etc. We used to use an email application called Eudora which allowed you to copy and paste group lists as though they were just text characters. With Mail (and Address Book), everything is connected to everything else and a group list is actually a set of flagged contacts from your "All Contacts" list.

  • How to: share address book groups

    My coworkers shares her contacts with me thru icloud. I have added her icloud account in my address book.
    I see all her contacts in my address book as expected. But her groups are not included in the sharing.
    How can we share groups from her address book to mine, so i can see and adjust her groups?
    Thanx, Guido van Leeuwen

    Hi,
    the target users most probably needs to link to the shared workspace, see http://www.oracle.com/technology/products/beehive/beehive_users/zimbra.htm#CFHFBDBF
    Regards, Thomas

  • Account options - Refresh address books / rules range

    Hi Forum,
    sometime I get (annoying) calls that there are old users on distribution lists which are already deleted. They get an error message if they send mails to that list...
    So far I could always resolve that issue by simply refresh the system groupwise address book manually.
    My question now is how I could reduce the mentioned refresh range in the account options to 1 day e.g. via C1 or some other way (default is 7).
    Any suggestions? Thanks in advance :)
    Cheers,
    Pascal

    Hi Pascal,
    Firstly double-check that nightly user upkeep is running on your post offices. This process removes deleted accounts from personal address books.
    As far as changing the setting for a caching/remote mailbox to download address books every 1 day instead of the default of 7 days - I never found a way to automate this. We manage this manually. Fortunately for us, we the IT people, setup the caching mailbox for each user, so the process of changing this setting to 1 day is well documented.
    Perhaps there's a registry key - but I'm not sure.
    Cheers,

  • ITunes' iPod preference missing Address Book Groups

    Just got an iPod Touch. When I first synced the ipod all of the contacts were from my Entourage account. I wanted them from Address Book. When I go in iTunes, under "Devices" and get the preferences for the iPod, I look under the "contacts" section. There are none of my Address book "groups" to select from. iTunes is not recognizing my Address book.
    How do I fix this?

    The Mac specialist over the phone said that my iPod was malfunctioned and needed to be sent in. It ends up that the iPod touch has a few limitations that other iPods I've owned do not have. While my 80 gig video ipod would show all my groups, the iPod touch would not. After about two days of playing around I found out that once I eliminated some of my groups they appeared in iTunes preferences. I don't have an exacts count but I think more then 15 groups is too much for iTunes.
    Problem solved.

  • IMac accounts sharing an Address Book, without a dot-mac account?

    Two Administrator accounts on one iMac, having a single Address Book in common? (Only open in one account at a time is no problem.) In this helpful 3/6/06 post, Paul Wayne addressed this issue. He said:
    The easest way to do this is by move /Users -> user_name -> Library -> Application Support -> Address Book folder in the the /Users/Shared/ folder
    Then make an alias by dragging the newly moved folder from /Users/Shared to the each of the user's /Users -> user_name -> Library -> Application Support while holding down the option command key.
    This made sense to me. As a new convert to Tiger from System 8.6, I'm not going to try anything too adventurous. Having Address Book in both Administrator accounts open a file in
    /Users/Shared/Library/Application Support/Address Book/
    by way of an alias in each
    /Users/UserName/Library/Application Support/Address Book/
    So I reset permissions to enable both of the administrator accounts (Alice and Bob) in question to read and write to subdirectories in the /Users/Shared/ folder and did as Paul suggested.
    No go. Alice now opens her address book, located in
    /Users/Shared/Library/Application Support/Address Book/
    But Bob still opens his own address book, notwithstanding an alias for "Address Book" pointing to the folder in Shared at
    /Users/Bob/Library/Application Support/Address Book/
    I tried removing the folder alias and replacing it with Bob's original "Address Book" folder, then making aliases for each of the files in the Shared "Address Book" folder and putting them in Bob's "Address Book" folder.
    But when Bob opens AddressBook, he still sees his original Address Book. Surprisingly (to me), Bob's "Address Book" folder now has only the aliases for the files visible. So either the actual data files are invisible in "Address Book", or the program is calling them from some other location.
    This doesn't seem like it should be an unusual desire--two separate accounts on one machine sharing a single address book. Doesn't seem that it should be a tough problem, either--Paul's solution ought to have worked.
    If I start up Terminal and use Unix to "ls -al" in the folders in question, will that show that I've induced the Mac to create invisible files or aliases that are trumping my clumsy efforts?
    Intel Core Duo iMac   Mac OS X (10.4.5)  

    Hi Dozza,
    The good news is YES, sharing an Address Book group(s) is easily done without .Mac
    Since you are on an ethernet network, all you need to do is:
    1. Enable Sharing thru System Preferences from your "main" computer you wish to transfer data from/with.
    2. Drag your AB group(s) or individual cards to the desktop of your main computer - the one you have all the info in... (the cards will convert to vCards automatically.
    3. Place those groups or cards in your Drop Box folder which is: Hard Drive>Users>your "Home" folder>Public>Drop Box
    4. All networked computers will be able to access your Drop Box folder even if you do not want other info shared.
    Of course .Mac is pretty darn handy too!
    Good Luck
    John

  • ISync syncs to wrong Address Book group

    When I sync my phone (Nokia 3230) with my MacBook, I designate the Address Book group titled "Contacts in 3230" to be synced. But contacts that I've added to the phone (my usual way of adding new contacts) are transferred to my "All" contacts in Address Book, but NOT to the designated group. To correct this, I have to manually try to remember what contacts were added to the phone, and then copy them from "All" into the "Contacts in 3230" group.
    How can I make iSync sync to the designated group?
    Many thanks for your advice.

    I have the same problem with a Nokia 6230. Really annoying as i sync has now cluttered up my mac address book with phone contacts that i wanted in a specific group called 'nokia back up' Also I tried putting a test item in this folder and this did not download onto the phone. I don't want my phone filled with all of my contacts and i don't want my mac filled with all the temporary contacts that end up in a phone on a Friday night. All i want is to back up my phone to my mac in case i loose it. should be simple enough!

  • Sending an email to a 250 person address book group.

    I am trying to send an email with a picture attached to a group from my address book using Mac Os X mail. It will not send when I click the send button. There are 250 people in the address book group. Is there a limit to the size of group that OS X mail will send to?
    when i remove the group and send to 2 individual contacts, it sends right away...help.

    Not sure that there is one in today's world of spamming - frankly, I'm glad my ISP and/or web email hosting service et al have these in place.
    This is what I do for any emails which need to be sent to more than about 10 - 15 people:
    I prepare an email with attachments if necessary and have my address book open. I start inserting email addresses in the BCC field until I reach a certain number. I open a new message window, paste in the email, and work on the next 50 or so. I do this until I've enough emails to cover every recipient I want to send this to. I then send one or more emails, wait about 2 hours, send more, etc, etc - you get the idea.
    Also, be advised: Comcast has told me that they watch the activity; although they do not have a maximum in my case, if they feel that you could be a spammer by the number of emails and recipients, they may not allow the usual port for you to send email through and you will get errors.

  • Address book groups not updated in iSync and iTunes-iPod-info sync

    Changes to address book groups are not reflected in iSync and iTunes. I.e. if I remove a group or add a group it is still the old list of groups that is listed in iSync and iTunes available for syncing with my phone or iPod. How do I get these list to be updated and reflect the present list in Address Book?

    The suggested resolution essentially said "delete the address book and start over."
    Ok, I can see how this will help but... a few questions:
    1. How to I re-load the address book with my 500+ contacts without loosing my groups and all the data? The suggestion in the other discussion doesn't give any guidance on this
    2. What caused the problem to begin with? In other words, how can I prevent it from happening again?
    I discovered the syncing problem about the time I did the following three things:
    1. Upgraded to 10.5.2
    2. Upgraded my iPhone (and iTunes) to 1.1.4
    3. Installed Bento (possibly a red herring) -- but it DOES connect to address book

  • Address book groups in icloud

    I have been a long time mac mail user and love it.  With iCould I cannot seem to access my address book groups like in mac mail.  Is there any way to send mail to these groups in icloud mail, like I can in mac mail.  The reson being is that my office has sbcglobal as our IT provider and it has glitches with mac mail.

    If you want to send a message to Apple, please submit it at:
    http://www.apple.com/feedback/

  • Palm address book to be synchronized with a window based EPABX address book

    Is it possible to synchronize the palm address book with a window based EPABX address book?
    Post relates to: Centro (Unlocked GSM)

    Can you sync the EPABX to Outlook? If you can, you could change the sync method to sync with outlook and then sync to the PBX system.
    The other option is to export the data as a .csv or tab delimited format and then import into the PBX system, if it accepts those file formats.
    Click on the following link to the kb.palm.com webpage for the article regarding Export data from Palm Desktop for Windows.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=28734
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://kb.palm.com/wps/portal/kb/na/centro/centro/unlocked/home/page_en.html
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.

  • Sorting address book groups

    Is there a way to sort the order of address book groups other than alphabetical?
    Thanks

    Is there a way to delete groups in contacts on the Iphone. I am deleting dup contacts manually but don't see anyway to delete unwanted and dup groups.

  • Lion 10.7.1. how do you transfer the address book groups to a spreadsheet?

    Lion 10.7.1. how do you transfer the address book groups to a spreadsheet?

    Download Address Book Extractor from the App Store ($1.99), export to a csv file and open in the spreadsheet of your choice.

  • Question: why mail does not recognize an address book  group

    i could not find an address book forum - excuse me if i post here.
    an address book group with about 20 names has worked well for a year.
    today i added and deleted a few names. now mail does not recognize the name as an email group.
    i created a new group with a new name and imported all the names in one block from the non working group. the new group also is not recognized as having email addesses in mail.
    my other groups seem to work fine.
    i had entourage for awhile and had to rebuild it periodically. do i need to do something similar here.
    thanks

    Check the names of your groups that you have this issue with to make sure you don't have any special characters or extra spaces at the beginning or end of the group name.
    I just found another posting on the message boards that solved my issues. Someone discovered that they had a blank space in their group name which was causing the error. I didn't have any extra spaces at th end of the group name, but I did have a period in my group name (St. Francis). I removed the period from the group name in address book and now the emails send to that group without the error message.

  • Add contact from Mail directly to Address Book group?

    I am aware of adding a contact to Address Book by Control-clicking the email address, however I would like to add an address directly from Mail to an Address Book group. How is this done?

    You first need to open the message(s) that have the addresses you want to add to Address Book, then select the Add Addresses… script from the Mail Scripts folder listed in the Scripts icon in the menu bar (you can activate this by launching the AppleScript Utility.app program in HD/Applications/AppleScript and check the box labelled "Show Script Menu in menu bar" if it isn't already there).
    The script will launch and gather the information it needs about those messages, including the To: and From addresses and present them to you in a window; you need only check which ones you want to add and select the group you want them to go to from the drop-down menu it has and click Add or Okay, or whatever it has listed there to execute the script.
    Rinse and repeat for each different group of messages you want to add to a specific group.
    Mulder

Maybe you are looking for