bobgarv

Q: how can i paste a column of email addresses from an excel spreadsheet into a Mail message To: window

In the past I have been able to send a group email by copying a column of email addresses from an Excel spreadsheet and pasting it into the To: window of an email message I had composed. I simply dragged my cursor down the column containing the email addresses, right-clicked Copy, put my cursor into the To: window of the email, and hit Paste. Mail recognized the list as a series of email addresses and I was able to hit Send and the email went on its way.

Today I tried to do this and after I hit Send I got an error message. It appears to me that Mail did not recognize the list as a series of individual email addresses but saw them as one long address; the error message said it "did not appear to be a valid email address". Has something changed in Mail? I recently installed Mavericks!

I can't be the only one who sends group emails this way. Are others experiencing this problem?

Posted on Oct 31, 2013 9:51 AM

Close

Q: how can i paste a column of email addresses from an excel spreadsheet into a Mail message To: window

  • All replies
  • Helpful answers

Page 1 of 3 last Next
  • by Tony T1,Solvedanswer

    Tony T1 Tony T1 Oct 31, 2013 10:00 AM in response to bobgarv
    Level 6 (9,225 points)
    Mac OS X
    Oct 31, 2013 10:00 AM in response to bobgarv

    Mail now needs a "," (comma) separator.

    In Excel, just go the the next col and use the formula: =A1&","

    ...and then paste that col into mail

     

     

         Screen Shot 2013-10-31 at 1.00.06 PM.png

  • by bobgarv,

    bobgarv bobgarv Oct 31, 2013 10:06 AM in response to Tony T1
    Level 1 (7 points)
    Oct 31, 2013 10:06 AM in response to Tony T1

    Tony,

     

    Thanks a million!! Problem solved.

  • by Chuck Kay,

    Chuck Kay Chuck Kay Nov 2, 2013 6:04 PM in response to bobgarv
    Level 1 (4 points)
    iLife
    Nov 2, 2013 6:04 PM in response to bobgarv

    Thanks Tony. Helped me too!!

  • by kbacon,

    kbacon kbacon Nov 8, 2013 7:11 AM in response to Tony T1
    Level 1 (35 points)
    Mac OS X
    Nov 8, 2013 7:11 AM in response to Tony T1

    That helps, but it is only a "workaround". Why did Apple remove the longstanding previous behavior that was so useful? And will they put it back in. Even your sugestion adds several steps to our workflow that we have been using for years and that is not acceptable.

  • by Tony T1,

    Tony T1 Tony T1 Nov 8, 2013 7:23 AM in response to kbacon
    Level 6 (9,225 points)
    Mac OS X
    Nov 8, 2013 7:23 AM in response to kbacon

    kbacon wrote:

     

    And will they put it back in.

     

    Maybe, but don't count on it.

     

    Even your sugestion adds several steps to our workflow that we have been using for years and that is not acceptable.

     

    There are other ways,  If you would post your workflow, instead of complaining, maybe someone can help

  • by kbacon,

    kbacon kbacon Nov 8, 2013 8:14 AM in response to Tony T1
    Level 1 (35 points)
    Mac OS X
    Nov 8, 2013 8:14 AM in response to Tony T1

    Now Tony, I know you can't hear my tone on a forum post but I was not complaining, simply stating facts . This change brought several people in my office to a grinding halt in a long established workflow that is really rather simple (and I thought was already assumed from the original post above ):

     

    1) Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.

    2) Open that CSV file in Excel.

    3) Copy the column of e-mail address.

    4) paste into the appropriate recipient field in Mail.

    5) Send

     

    If I were to complain it would be about Apple's typically opaque approach to updates. There is no granular explanation of why changes were made or even "what" changes were made.

     

    Complaining is futile since Apple is Apple and is unlikely to change, but sometimes it is cathartic to "shout into the void" .

     

    I had thought about doing something with a formula in Excel and your suggestion was simple and helpful. Again, however, it is only a workaround for a long established helpful behavior that Apple has inexplicably broken/removed in Mavericks Mail.

     

    I, and the other posters here, would love to have the capability back rather than have to add previously unneeded steps to our workflows.

     

    Ultimately we may add scripting steps to the FileMaker side to export the address lists with commas inserted already if Apple ends up having permanently removed this feature.

  • by Tony T1,

    Tony T1 Tony T1 Nov 8, 2013 8:49 AM in response to kbacon
    Level 6 (9,225 points)
    Mac OS X
    Nov 8, 2013 8:49 AM in response to kbacon

    That workflow could be made a lot simpler

    Why do you need to copy the .csv file into excel?

    Try this in Automator:

    1) Open Automator and select: Application

    2) Select Action "Ask for Finder Items"

         (not necessary, but edit prompt to: Select .CSV File)

    3) Select Action "Filter Finder Items" (to csv files)

    4) Select Action: "Run Shell Script" (select: Pass As Agruments)

          enter: sed 's/$/,/' $1 | pbcopy

     

    Here's what it will look like

     

         Screen Shot 2013-11-08 at 11.44.28 AM.png

     

    Now, all you have to do is:

    1)  Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.

    2)  Run that Automator App just created and select the CSV file

    3)  Paste into the appropriate recipient field in Mail.

    4)  Send

  • by kbacon,

    kbacon kbacon Nov 8, 2013 11:04 AM in response to Tony T1
    Level 1 (35 points)
    Mac OS X
    Nov 8, 2013 11:04 AM in response to Tony T1

    Thanks for the suggestion Tony. I was hopeful that would provide us an even easier workflow!

     

    However, I set up my Automator Application just like you specified and it doesn't seem to do anything to the addresses. They simply get pasted in with quotes around them and spaces between them, no periods?

     

    I did a little quick research on the sed substitute command and found that your suggested shell script was missing the "g" flag. I also substitued a quotation mark (") in place of the $ that you had in your script. Once I made those changes it works perfectly and provides the e-mails formatted as needed for pasting into mail!

     

    Here is the modified shell script that I used:

     

    sed 's/"/,/g' $1 | pbcopy

     

    Thanks for pointing me in the right direction. This makes things almost as simple as before. In the past we had the following steps:

     

    1. Run script in FileMaker Pro (this found the appropriate records, exported the e-mail addresses to CSV and automatically opened it in Excel)

    2. Select and copy the column of addresses.

    3. Switch to mail and paste.

     

    Now we simply:

    1. Export the CSV.

    2. Run the Automator application

    3. Select the created CSV in the dialog box

    4. Switch to mail and paste.

     

    Now if I can set up automator to monitor the desktop and automatically run when an "untitled.csv" file is created . . . that is my next task!

     

    [UPDATE] I set it up as Folder Action associated with the Desktop folder and dropped the first "Ask for Finder Items" command and Boom! All I have to do is export and then paste!

     

    Message was edited by: kbacon

  • by Tony T1,

    Tony T1 Tony T1 Nov 8, 2013 11:19 AM in response to kbacon
    Level 6 (9,225 points)
    Mac OS X
    Nov 8, 2013 11:19 AM in response to kbacon

    kbacon wrote:

     

    I did a little quick research on the sed substitute command and found that your suggested shell script was missing the "g" flag. I also substitued a quotation mark (") in place of the $ that you had in your script. Once I made those changes it works perfectly and provides the e-mails formatted as needed for pasting into mail!

     

    I incorrectly tested on a plain text file that had 1 emai per line, and no quotes, i.e. tony@anywhere.com  ("$" is end-of-line)

    Nice that you were able to de-bug it.

     

    Now if I can set up automator to monitor the desktop and automatically run when an "untitled.csv" file is created . . . that is my next task!

     

    You can create the Automator as a Folder Action, but I wouldn't use the Desktop Folder (although I guess you could).

    (The reason why I wouldn't use the Desktop is that the Automator will run whenever any file is placed on the Desktop)

     

    You should be able to create an Auomator Service, this way you can highlight the csv file and right-click to run

  • by kbacon,

    kbacon kbacon Nov 8, 2013 11:17 AM in response to Tony T1
    Level 1 (35 points)
    Mac OS X
    Nov 8, 2013 11:17 AM in response to Tony T1

    Yes, that might be cleaner to set it up as an Automator service. That way the action is only initiated intentionally.

     

    I suppose the folder action is alright as long as I don't mind it constantly monitoring my Desktop? I am not sure how much processing overhead that entails?

  • by Tony T1,

    Tony T1 Tony T1 Nov 8, 2013 11:26 AM in response to kbacon
    Level 6 (9,225 points)
    Mac OS X
    Nov 8, 2013 11:26 AM in response to kbacon

    Does the csv file need to be saved to the Desktop? 

    Can you save it to a dedicated folder?

    ...or have 2 Folder Actions.  The 1st monitors the Desktop, if the csv file is there, move to another folder, then have the other Folder Action run?  (you can even have the 2nd Folder Action move the csv file to the Trash when done).

     

    The processing overhead is minimal

     

    I would use a Service, but that's just a personal preference.

  • by Tony T1,

    Tony T1 Tony T1 Nov 8, 2013 11:38 AM in response to kbacon
    Level 6 (9,225 points)
    Mac OS X
    Nov 8, 2013 11:38 AM in response to kbacon

    kbacon wrote:

     

     

    Now we simply:

    1. Export the CSV.

    2. Run the Automator application

    3. Select the created CSV in the dialog box

    4. Switch to mail and paste.

     

     

    You can add the Action "New Mail Message" (with the option "Ignore this actions input) and skip #4

     

         Screen Shot 2013-11-08 at 2.36.34 PM.png

  • by Aj Epstein,

    Aj Epstein Aj Epstein Nov 8, 2013 1:40 PM in response to Tony T1
    Level 1 (30 points)
    Nov 8, 2013 1:40 PM in response to Tony T1

    Hello,

     

    Forgive my Excel ignorance, but when I paste

    =A1&","

     

    into the column adjacent to my list of email addresses, it only gives me the 'corrected' email address + coma for that row. I've tried to select the entire empty column to paste the formula into, but excel doesn't seem to function that way.

     

    How would I get excel to generate the entire list of emails + the comma?

     

    Thanks!

     

    AJ

  • by kbacon,

    kbacon kbacon Nov 8, 2013 1:46 PM in response to Tony T1
    Level 1 (35 points)
    Mac OS X
    Nov 8, 2013 1:46 PM in response to Tony T1

    I added the action and it opens a new mail message but I still have to issue the paste command manually. Is this the expected behavior?

Page 1 of 3 last Next