Script to extract names and email addresses of all recipients of an email

Hi,
I have found some scripts which extract email addresses from the content of messages in Mail, but I am looking for something rather different, and wonder if such a script exists, or if someone can help me build one.  I would like to create a tab delimited text file of the first name, last name and email address of all recipients of a given message in Mail.  Most email addresses will be in the format John Doe <[email protected]>.
Thanks,
Nick

Hi,
nick_harambee wrote:
I have one outstanding issue, which wasn't included in the original question.  Sometimes email addresses are included in the Name of the recipient, i.e. instead of 'John Doe', it reads 'John Doe ([email protected])'.  Could you script be adapted to delete any block of text (i.e. space delimited) that includes the @ symbol, so that 'John Doe ([email protected])' would return:
John<tab>Doe<tab>[email protected]
Use this handler:
on splitName(t)
    if "@" is in t then -- to remove the address after the name
        set n to -3
    else
        set n to -2 -- normal name
    end if
    set tid to text item delimiters
    set text item delimiters to space
    set l to text items of t
    if (count l) = 1 then -- no space 
        set r to tab & t & tab -- last name only 
    else
        tell l to set r to "" & (items 1 thru n) & tab & (item (n + 1)) & tab
    end if
    set text item delimiters to tid
    return r
end splitName

Similar Messages

  • How can I send an email to a group in my address book, but hide the individual names and email addresses?

    how can I send an email to a group in my address book, but hide the individual names and email addresses?

    You used to be able to do this through leaving unchecked the box in preferences "when sending to a group show all member addresses". However, that feature failed some time ago (two or three years?) and the only way to hide the addresses now is to put the group in the BCC field.

  • How to email a list of names and email addresses?

    I have a group of about 60 people with various amounts of data in each of their Address records.
    I want to send an email to the group with a list of the names and email addresses of everyone on the list. I don't know how to do this neatly. Got any ideas?
    If I put the group name in "to" in Mail, each person gets a messy non-alphabetical list with commas. If I send a group vCard, I send more data than I want to send. If I make a printed list, I have to convert to a pdf file and send that which is not nearly a simple as a text list.
    Is there any way to export fields of my choice from Address into either text or spreadsheet format?
    I want to send a list like this, but with tabbed columns.
    Steve Jobs [email protected]
    Barack Obama [email protected]
    yourname1 yourname2 [email protected]
    Thanks,
    Phil

    Thanks, Thomas for the prompt response, but the pdf method has two problems.
    First, it's got to be in landscape mode, or the email address word-wrap. That makes for a five-page list. I want to send a 60-line text list.
    Secondly, there's no way to eliminate the label (work, home, other...) from the email address field.
    I will use the pdf method if no one comes up with a better idea.

  • I open a pdf file with club members names and emails. I used to be able to click on the members email and a outlook box would appear with the email address .

    I have a list of names and email addresses (250) and in a previous version of firefox I would go on the web page and when I would place the curser over the members email address and click it would automatically bring up an Outlook email to send box with the members email address already listed and ready for me to enter any information. This new firefox version (19) just lets the curser go across the email address and nothing happens when I click. How do I get the previous feature back?

    Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to completely disable the build-in PDF viewer and use the Adobe Reader instead.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message.  What am I doing wrong?

    I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message.  What am I doing wrong?

    This may help.
    Can't connect to the iTunes Store
    What happens whenyou try to connect? Error messages?

  • How to show users display name and email address in open social widget?

    Hello experts,
    Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
    Best regards,
    Ville

    Hi Ville,
    in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
    If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
    Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
    The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
    Look at this - SAP HANA Cloud Platform SDK >
    Package com.sap.security.um.user
    Interface:
    User
    This interface provides read access to user data and is an extension of Principal.
    UserAttribute
    The interface represents abstraction over a user general attribute, such as an e-mail address.
    UserProvider
    This interface represents the service interface which provides read access to a user implementation.
    Inbal 

  • ERROR: Your web form must capture customer name and email address.

    Hi,
    I keep receiving this error message when trying to checkout and submit a payment.
    ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page.
    The strange thing is it's only happening in chrome. It works perfectly in IE and firefox, the form submits and takes me to the order confirmation page. I've tested it on multiple PCs so it's definitely a chrome issue. Does anyone have any advice as to what could be causing this issue with chrome?
    Thanks,
    Pete

    Check your eCommerce web form in the admin has the ID - 211729
    This is what the form ID is, if you have deleted it and made a new one it will not Marry up
    The things you normally look for with this error is The first name and last name along with email fields have the right ID and name parameters on the input. The javascript is picking those up so it looks like that is working.
    So next is the form in the admin marrying up with the form on the page or in this case the Registration Buy layout.

  • How do i fix the "web form must capture customer name and email address" error?

    Hi all,
    I have a webform that is submitting securely to the bc servers. I get the response:
    {"SystemMessage": { "success": False, "message": "ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page." }}
    I have verified that the "FirstName","LastName","EmailAddress" are actually gettting sent with their corresponding values. I can't seem to figure out why i keep getting this error. Can someone please lend a helping hand?!? Thanks guys... here's my code:
    var rAction = 'https://site.worldsecuresystems.com/FormProcessv2.aspx?WebFormID=85886&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&CC={module_urlcountryc ode}&Referrer={module_siteurl,true,true}&JSON=1';
    var rData = 'FirstName='+escape(fName.val())+'&LastName='+escape(lName.val())+'&EmailAddress='+escape (email.val())+'&Username='+escape(username.val())+'&Password='+escape(passwd.val())+'&Pass wordConfirm='+escape(passwd2.val())+'&BillingAddress='+escape(baddress.val())+'&BillingCit y='+escape(bcity.val())+'&BillingState='+escape(bstate.val())+'&BillingZip='+escape(bzip.v al())+'&PaymentMethodType='+escape(paymentMethodType)+'&CardName='+escape(cName.val())+'&C ardNumber='+escape(cNum.val())+'&CardExpiryMonth='+escape(expMonth)+'&CardExpiryYear='+esc ape(expYear)+'&CardType='+escape(cType)+'&CardCCV='+escape(ccv.val())
    $.ajax({
    type: 'POST',
    url: rAction,
    data: rData,
    success: function(msg){
    console.log('success');
    $('#result').html(msg);
    error: function(msg){
    console.log('error');
    $('#result').html(msg);

    Ok -- after testing this out a little on my own I think it must have to do with not properly serialzing the data you are passing in the ajax function.  In the example I linked to earlier they are just serialzing the form data and it works because it converts the data in the form's input fields to URL encoded notation.
    If you aren't using an actual form on your site to mimick the example I linked to then when building your "rData" string instead of using the "escape" function for each of the parameter values, you should be using the "encodeURIComponent" function instead which instead of escaping characters will convert it to URL encoded notation.  That's probably your issue. Here's more about encodeURIComponent(): http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp
    Try this with the rData variable instead:
    var rData = 'FirstName='+encodeURIComponent(fName.val())+'&LastName='+encodeURIComponent(lName.val()) +'&EmailAddress='+encodeURIComponent(email.val())+'&Username='+encodeURIComponent(username .val())+'&Password='+encodeURIComponent(passwd.val())+'&PasswordConfirm='+encodeURICompone nt(passwd2.val())+'&BillingAddress='+encodeURIComponent(baddress.val())+'&BillingCity='+en codeURIComponent(bcity.val())+'&BillingState='+encodeURIComponent(bstate.val())+'&BillingZ ip='+encodeURIComponent(bzip.val())+'&PaymentMethodType='+encodeURIComponent(paymentMethod Type)+'&CardName='+encodeURIComponent(cName.val())+'&CardNumber='+encodeURIComponent(cNum. val())+'&CardExpiryMonth='+encodeURIComponent(expMonth)+'&CardExpiryYear='+encodeURICompon ent(expYear)+'&CardType='+encodeURIComponent(cType)+'&CardCCV='+encodeURIComponent(ccv.val ())

  • How do I set Mail to display Name AND email address in the message

    I thought I used to have this setting and now I cannot find it (if there is one)
    Can't I set mail to show Name and email address in the address box both when creating a message and viewing one?
    thanks,
    tom

    Thanks, Ernie
    I wasted about 20 minutes looking for it and couldn't find it
    cheers,
    tom

  • Importing a group of names and email addresses from EXCEL to address book

    I want to create a new group in my address book, so I can send one email to multiple addresses. I have an EXCEL document that contains the names and email addresses. Is there an easy way to import them into my address book from EXCEL?
    Thanks, Teri

    Hi,
    I'm having the same problem. I'm trying to import 300 addresses from an Excel file into Address Book. The Excel file has been converted to tab-delimited (txt). I've gone through and deleted any extra line breaks within fields, commas, etc in the addresses.
    When I go to Address Book and ask it to import the Text file, I get the dialog window showing me the fields it will import, but when I click on "OK", the program just freezes. Also, it tells me in the dialog window that it won't import specific fields like Street 2, City, State or Zip and there is information in all of those fields for every record to import.
    I've been working on this for three weeks now and am at my wits end. I have never had a database program be so difficult to work with.
    Any ideas?

  • I want to copy only the email address from Mail, not the name and email

    When I get an email I want to be able to copy ONLY the email address and NOT the name.
    Before I would click on an email, click on the email address and paste the email address to a list.
    Now I do that and I get the name AND the email address, which makes me edit out the name every time. UGH.
    Mavericks 10.9.5

    did not make a difference. If I copy from the email (that has a name & email) and paste to text file (Bbedit) the name and email still show. I do not want the name, just the email.

  • RE: 1) Changing name and IP address of an AIX 4.2 Server 2)Using NAT

    Daniel,
    you (normaly) just have to :
    1) edit the $FORTE_ROOT/fortedef.sh fileand change the value of variable
    FORTE_NS_ADDRESS
    2) shutdown and restart forte environment
    3) put the new values in the control panel of the client and run !
    It worked on our site with the same configuration (Aix 4.2)
    Good luck
    De : Daniel[SMTP:[email protected]]
    R&eacute;pondre &agrave; : Daniel
    Date : vendredi 18 juin 1999 13:08
    A : [email protected]
    Cc : Jose Ignacio
    Objet : 1) Changing name and IP address of an AIX 4.2 Server 2)
    Using NAT to reach forte
    Hello Forte Users :
        I have 2 questions to make:
        1)
        I've installed a Forte Server Central Node (Release 3.0.F.2) in an
    IBM RS/6000  with OS AIX 4.2
        (The name of the server is Name_1 and the IP address is
    125.125.50.50 with mask 255.255.255.0)
        Nowadays we had to change the name and IP address of this server
    lets say to Name_2 and 125.125.60.60 with mask 255.255.255.0.
        After that we try to find any reference to old name and IP address
    in the forte directory and all of its subdirectories changing them to
    the new ones.
        After these changes we found than forte could'nt start the nodemgr
    server.
        We have too many reasons to avoid installing FORTE again.
        Does anybody know if I have to change anything more to make
    nodemgr server work.
        2)
        The second question is about NAT (Network Address Translation).
        To reach a Forte Server Central Node from a Forte Client we have
    to pass through a Firewall and NAT.
        We are researching and at this moment we can not reach the server
    from the client, has anybody any suggestion to correctly configure
    Forte (Client and Server) to use NAT between them.
        If anyone could help me I would be very pleased.
        Thank you very much in advance,
        Daniel Gonz&aacute;Lucas (EAM Sistemas Inform&aacute;ticos SL, Spain,
    e-mail: [email protected])
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    >> 15 Mins is not enough for completely the replication.
    >> use repadmin /syncall /aEpd   - for force replication.
    >> Wait 3 hrs minimum.
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
      LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

  • Vendor account number ,Name and Email

    Hi
    I am looking for solution where i can download Vendor account number,name
    and email address,is there any standard table in SAP to download this data,i tried
    Abap query with LFA1 and ADR6 tables but it is not working ,can any help on this
    Thanks
    Lily

    Hi,
    Table LFA1 and ADR6 are right but in query, these tables will not be linled by system authomatically.
    You have to link these table manually by using field ADRNR in table LFA1 and field ADDRNUMBER in table ADR6.
    I hope it will resolve the issue.
    Regards,
    Vinod

  • Get Attachment Name and from address of mail in bpel process

    Hi All,
    I am using UMS Adapter to poll email server and  getting the attachment and saving it to local disk.
    In Payload from UMS adapter  i am getting href of the attachment  but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
    please guide me in getting them .
    Thanks in Advance
    Divyanshu

    1. Double click on your composite receive activity.
    2. Go to Properties tab in your receive activity.
    3. Click "+".
    4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
    5. Click OK.
    6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
    you are good to go.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • Import Full Name and Emal Address

    Hi,
    I have successfully connected my BOE 3.1 to SAP and imported a role with 2,500 users.
    The Account Names are successfully populated but the Full Name and Email fields are not.  Further to this, if I click on any user, the "Import Full Name and Email Address" check box is actually disabled.
    Is this a limitation of the integration kit?
    Will it be supported soon?
    Is there a work around such us a productivity pack where we can perform a bulk update via Excel and an API call?
    Thanks,
    Steve

    While it is possible to include additional roles in SAP an import them, the preferred approach is to validate the users in SAP only and to use local groups and imported SAP users for internal application security so as not t clog up the SAP system with with security roles which don't apply to it.
    Unfortunately, only the 8 digit SAP HR number is imported into BOE. Someone will now have to create an excel lookup spreadsheet for all users with their ESS number and full name, then manually add users to groups after looking refering to the excel spreadsheet for each name.
    Also, in the future, publications will also need email addresses.
    In R2, there was a migration / productivity pack where you could programatically add users to groups in bulk.  This would assist us in adding SAP users to local BOE groups.
    Cheers,
    Steve

Maybe you are looking for