From Adressbook to Excel file

For my work I need to deliver all Adresses (groupwise) in an Excell file.
Furthermore I need to put the Billing number (I strategically placed in the "note" section) to be visible
Yes, I am a Apple apprentice and would like some help
iBook G4   Mac OS X (10.3.9)  

Try this - open it with script editor and run it. The resulting file on the desktop can be dropped into excel.
AK
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">(* Make Address Book contacts into a CSV file for import to Excel*)
(* AK May 2006 *)
set CName to ((path to desktop) as string) & "ABContacts.cvs" --change this for different file name
set CVSFile to open for access CName with write permission
set CVSLine to "Group" & tab & "First Name" & tab & "Last Name" & tab & "Email" & tab & "Billing Number" & return --header line
write CVSLine to CVSFile
set ContactDetails to ""
tell application "Address Book"
repeat with ThisGroup in groups
set GroupName to name of ThisGroup
repeat with ThisContact in people of ThisGroup
set Details to GroupName
set Details to Details & tab & first name of ThisContact
set Details to Details & tab & last name of ThisContact
--if other data needed, use this pattern
--see AB's dictionary for applescript names of contact properties
try
set Details to Details & tab & value of email 1 of ThisContact --this only gets 1st email
on error
set Details to Details & tab
end try
set Details to Details & tab & note of ThisContact
set ContactDetails to ContactDetails & Details & return
end repeat
end repeat
end tell
write ContactDetails to CVSFile
close access CVSFile</pre>

Similar Messages

  • How to download data from spool to excel file

    Hi,
    I have requirement like....i need to download data from spool to excel file.
    Please let me know the process how to download...
    <removed by moderator>
    <removed by moderator>
    Thanks,
    Khasimsa
    Moderator message: please (re)search yourself before asking, do not assign priorities, do not offer re-ward
    locked by: Thomas Zloch on Sep 8, 2010 1:18 PM

    Hi try this way..
    *FM called that returns the Spool Request Number data into and internal table
      CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident              = p_spool                     "Spool Request Number
          first_line           = 1
        TABLES
          buffer               = it_spool_xls                            "Internal table that will have the Spool Request No data
        EXCEPTIONS
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7
          OTHERS               = 8.
    *To convert the spool data into excel format
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = it_spool_xls               "Internal table having spool data
          objcont_new = it_xls_spool.           "Int table having Excel format data converted from Spool data
    "call GUI down Load by passing  it_xls_spool
    Prabhudas

  • Extract data from Oracle in excel file

    Hi,
    I have a requirement where in I need to extract data from Oracle in excel file and the excel worksheet name should be "Data".
    for eg. excel file name "AR Data_DDMMYY" and excel worksheet name "Data"
    I have used the UTL_FILE API to extract the tab delimited data which can be opened in excel but it is not exactly an excel file as the worksheet name is same as the file name.
    I tried using utl_file.fcopy and frename.
    Is there any way to do this using PLSQL?
    select * from v$version;
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - ProductionSample Code:
    declare
    cursor c is
    select * from scott.emp;
    v varchar2(100);
    f utl_file.file_type;
    file_name varchar2(100) := 'AR Data.xls';
    dir varchar2(50) := 'CESDIR191710';
    --select * from dba_directories
    begin
    f := utl_file.fopen(dir, file_name, 'W');
    v := 'EMPNO'||chr(9)||'ENAME'||chr(9)||'JOB'||chr(9)||'SAL'||chr(9)||'HIREDATE'||chr(9)||'DEPTNO';
    utl_file.put_line(f, v);
    for i in c
    loop
    v := i.empno||chr(9)||i.ename||chr(9)||i.job||chr(9)||i.sal||chr(9)||i.hiredate||chr(9)||i.deptno;
    utl_file.put_line(f, v);
    end loop;
    utl_file.fclose(f);
    --utl_file.frename(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls', false);
    utl_file.fcopy(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls');
    end;Thanks
    Imran

    Imran Soudagar wrote:
    Hi,
    I was able to generate the excel 2007 file with the data using the package from below link;
    http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
    but the requirement is to generate excel 2003 file.
    I tried changing the .xlsx to .xls and it gives a note while opening the file "The file you are trying to open, abc.xls, is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"Then you have three options:
    1) stop using anton's package and find another one that supports the old and deprecated version of Excel 2003
    2) write your own package to produce an Excel file.
    3) Upgrade your version of Excel to a recent version
    I tried the programs from other links on the forum but I am still getting this message. The client does not want this message to be displayed as the excel file works as an input to another system.
    Can anyone help me with the issue?
    Also, is it true that the programatically generated excel file is actually an xml file which is renamed to .xls and hence it shows the message while opening such files?Yes, Excel supports several different formats for it's files. By default, if you save an XLS files from Excel, it writes it out in a Microsoft proprietary binary format, which you would be hard pushed to replicate easily from PL/SQL. Excel also has the ability to save it's files as XML format, which is more readable and easier to produce programatically, whilst still allowing you to have multiple sheets, formulas and formatting included in it. That's the format that most people who need formatting and multiple sheets opt for when programatically generating their data as excel workbooks. (There's also an SLYK format that people used to use before that, but it's not as flexible)
    If you want to write your own, the easiest thing to do is to start with a blank workbook in Excel, and put in your basic requirements e.g. a couple of named sheets, and some data in different formats (number, date, text etc.) and different formatting options etc. Save that file in XML format from Excel and then open up the file using notepad/wordpad to look at the structure. There'll be a whole load of redundant rubbish Microsoft put in there, but you should be able to figure out the basic structure of XML required to give you what you want.

  • Transfer excel files from iMac to excel file on ipad

    transfer excel files from iMac to excel file on iPad.  Using iTunes, I transfered files on my mac using Numbers and it worked fine, but trying the same method for an Excel file didn't work (i.e., the Excel file never showed up on my iPad.)
    Thanks for any help you can provide.
    LJ

    http://www.wondershare.com/pdf/transfer-pdf-to-ipad.html
    http://www.bythom.com/pdffaq.htm
    How to Transfer PDFs to an iPad
    http://www.dummies.com/how-to/content/how-to-transfer-pdfs-to-an-ipad.html
     Cheers, Tom

  • Downloading from alv to excel file

    hai
       while downloading from alv grid to excel  file
      i am not getting values properly. i have taken 110 fields. i am not getting prper way. can u plz tel me way....

    Hi ....
    I have the similar problem. My coumns are not in any sequence when I download it to excel sheet.
    How do I fix it.
    Neha

  • How to get data from an existing Excel file using report generation toolkit

    I'm trying to use the Excel Get Data vi from the report generation toolkit, but i can't figure out how to turn a browsable path into the right type for the VI.  I've tried using the New Report.vi, but that doesn't work unless you use a template.  It won't open an existing excel file and make it an open report to pull data from.
    Essentially, i have a bunch of excel files that have data in them and i want to use a VI to analyze the data.  So, i'm trying to pull in all the data directly from the excel file so i don't have to reproscess them all into text so i can use the more standard spreadsheet VIs.  But to even convert the excel file programtically in labview won't i still need to be able to open the excel file and get the data?
    Solved!
    Go to Solution.

    I C.
    Got it,
    the reason why I can view it using my Excel file because its in .CSV.
    I open Microsoft Excel to open .CSV file.
    But you can also open .csv file with notepad.
    So, you cannot open .xls with Read Spreadsheet File
    I learn something everyday
    Best regards,
    Krispiekream

  • How to view data in Xcelsius from an external Excel file

    Hi Everyone,
    i wonder if you know How to view data in Xcelsius from external Excel file and not depend only on the emebded excel sheet.

    Hi,
    As per my understanding, excel has to be imported in Xcelsius to draw up the dashboard. Your aggregated data sits in the xlf file. Using an external excel file will not be possible (I guess).
    One of the ways to connect to an external excel, is the use XML Maps but then your data has to be in the form of XML which will be pulled into excel first and then needs to be brought in Xcelsius using Data Manager.
    You can explore XML Maps in xcelsius in SDN.
    Regards
    Nikhil

  • Reg : export data from ALV to excel file

    Hi All,
    I am using REUSE_ALV_GRID_DISPLAY to display the output. I have total 73 columns getting displayed in output but when i export the data to the excel file using (ctrlshiftF9) I am getting only first 43 columns in the first row and from 44th column on wards the data is populated in the 1st  column of second row.
    Please let me know is there any particular setting by which I can get all the 73 columns in a single row.
    Thanks in advance.
    VIJAY

    Hi vijay,
    You can try setting your line width to 255 in your abap program.
    Otherwise,  you can try an alternative:
    1. Put a customize button on the ALV toolbar.
    2. Go to se41 to create th buttons
    2. do i_callback_program in ALV function. or SET PF_STATUS
    3. Then in sy-ucomm, use 'GUI_DOWNLOAD' to xls.
    Hope this helps you.
    Thanks
    William Wilstroth
    Edited by: william wilstroth on Dec 18, 2007 5:06 PM

  • From sap to excel file with different sheets?

    can  i upload   an internal table  from  SAP to single Excel file with different sheets for example like : sheet1, sheet2, sheet3.......sheet10. , but need to upload data from sap to excel worksheets ie. from multiple named tabs in Excel. Is this possible, and if so, please can you help and advise me how?
    thanks
    venkat.
    Edited by: Matt on Feb 16, 2009 2:15 PM  Removed excessive question marks...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hi venkat,
    Yes indeed it is possible to write data from internal table to different excel sheets. Check out SAP's Microsoft OLE functionality.Search on SDN for OLE . Following are some links
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sample%252bprogram%252bto%252bopen%252bexcel%252bsheet%252busing%252bole
    You can also check out FM ALSM_EXCEL_TO_INTERNAL_TABLE to check how to read different worksheets.
    Using the above two resources you can create a program that can upload data to multiple worksheets in the same workbook.
    Also see this link
    Creating Excel with More than one page
    Edited by: aditya aghor on Feb 16, 2009 1:57 PM
    Edited by: aditya aghor on Feb 16, 2009 2:02 PM

  • Reading data from a static excel file

    Hi all
    I got the answer for attching excel file. But i want to read the contents from the uploaded file and save it in context variables.
    How is it done? Please reply soon. Its very urgent.
    Thanks & regards
    Aparnna

    Check this too
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353
    Regards, Anilkumar

  • How long does it normally take to convert from PDF to Excel files?

    How long does it normally take to convert from a PDF to Excel files?

    Sara-
    I did see your response.  Thanks.  The other thing that happened was after I enabled Adobe on my Dell it apparently knocked out my Mozilla.  Now I can't get internet connection unless I use Internet Explorer which I would prefer not to.  I'm going to visit our IT folks tomorrow and see if I can get some of this resolved.
    The PDF files I obtained that I am trying to transfer to Excel may be too complex because there is a great deal of extraneous text information in the basic document that lies outside of the tables I want to transfer.  I'm going to try and highlight the tables only and see if this works.
    Thanks for taking the time answering.
    Best,
    Henry

  • Date migration from Legacy system (excel file) to CRM 7.0

    Hi,
    Can any one guide me on the below:
    I am provided with excel files having prospect data with 63 fields and most of them are not the part of standard fields available.
    The requirement is to create the same data in CRM. I am unable to use ELM as most of the fields are not available. I suppose i need to get the fields created by technical team. However need some knowledge sharing on this. I think even BAPI approach would need fields to be created first.
    Should i revert back to the client asking for detailed information on the tabs or sections under which the missing fileds have to be created?
    Also guide me with alternate solution to map the data from legacy to CRM
    Please mark your solution on this
    thanks

    Agarwal,
    In your situation you need to have the additional attributes created in CRM, before you can do an upload.  Now if the new attributes are marketing attributes for the business partner, you can use ELM.  Otherwise if you still want to do ELM then you need to use the BADI.
    Your other option is use XIF adapter with LSMW to perform the upload, but the custom fields must appear in the bdoc structure on the CRM for them to appear.  Normally this won't be a problem if the CRM system has been extended via EEWB or AET.
    Take care,
    Stephen

  • Massive Import from Local Flat Excel Files

    Hi there,
    I have to import to HANA a large amount of Data from local files (Excel Files).
    I have a lot of tables with 100+ columns and like 10kk, 20kk or 30kk of rows.
    At the moment i do this things:
    1) Download a table from SAP in a .txt format, with like 800k rows per file;
    2) I use a program to split each file into many files with 65k rows each;
    3) Import the smaller file to excel. Here i keep all columns in Text type, except for Decimal Numbers for wich i use General Type;
    4) I use the import feature of Hana Studio for each excel file.
    So, for example, i have the table AFVC with 34kk rows. I downloaded 44 .txt files with like 500k ~ 800k rows each.
    After that i split each file into like 16 files with 65k rows each one. I open excel and import each file and i have to change some coloumn types.
    Now i can import each xls file into HANA with hana Studio.
    So i have to import to hana like 700 files. After i imported to excel each file..
    This is what i'm doing, and it's not so fast, i'm getting crazy.
    What can i do to improve the load?
    I don't have the FTP user yet (i requested that) and i don't have SLT avaiable.
    My real problem is that with so many coloumns i can't import to hana files with more than 65535 rows, or it give me a "out-of-memory" error.
    Thanks
    Alessandro

    Hi Alessandro,
    I would try to use the import-statement.
    I don't think that there's any limit, and also the error log which it creates is much more usefull then the errors shown in the import data wizard.
    Greets,
    ben

  • Remove Email Addresses From a Formatted Excel File

    I have an excel file that has some formatting in it that I
    would like to preserve (some cells have background color, etc). I'd
    like to remove a list of email addresses from this file. My first
    thought is to use cffile with action read, use the following in a
    cfloop: replace(emailAddressToDelete,
    excelFileVarCreatedFromCffileRead) and then save it back to excel
    format with cffile using action write. I tried this and the Excel
    file would not open. The error was:
    test.xls cannot be accessed. The file may be read-only, or
    you may be trying to access a read-only location. Or, the server
    the document is stored on may not be responding.
    I'm guessing something went wrong in the process of reading
    and writing the files contents and it's not as simple as I want to
    make it. Anyone have something to tell me that might help me remove
    email addresses from a formatted Excel spreadsheet?

    jqcf wrote:
    >
    > I'm guessing something went wrong in the process of
    reading and writing the
    > files contents and it's not as simple as I want to make
    it. Anyone have
    > something to tell me that might help me remove email
    addresses from a formatted
    > Excel spreadsheet?
    >
    Yup, .xls is a proprietary encrypted file format and
    <cffile.... is not
    going to be able to successfully read and modify it's
    content. You can
    copy it or move it, but not modify it with <cffile...>
    If the file format was a plain text such as .txt or .csv you
    could do
    what you are thinking about, but then you would probably not
    have the
    proprietary excel formating in the file.
    I've heard about the POI library that allows some native
    Excel access
    and such, but I am not knowledgeable in its ins and outs.

  • Saving data from loops to excel file.

    Hello all,
    Okay I am jammed up on this topic.   What I have is two while loops in parallel and I need to save the data from each loop in the same spreed sheet but on different pages.  I don't know if this is possible.  If not then just one spreed sheet with the data saved in columns.
    On the one page I would need the Interlock data (supply pressure, return pressure, flow rate, and change in pressure) an on the next page I would need the power supply info,  (supply current, supply voltage, and voltage across the diode).  I also have a date time stamp and an operator initials and diode serial number that I would like to have on each page but not 100% a must just need to save somewhere in the file. 
    I have the data going into table and table two respectivly, but don't need to view the tables.  I just used them as a test to see if the data was being passed correctly.
    Any help would be much appriciated, and If anyone has any question about the problem I would be more then happy to answer them.  Thanks. 
    BTW I am using labview 7.0
    Attachments:
    TEST STATION.vi ‏588 KB

    As stated before in this thread the way you are currently doing it you are NOT using activeX and writing directly to Excel, you are just writing a tab delimited text file that you can open with excel or that you have set to open with Excel in windows. You will NOT be able be able to put your data on two seperate pages. You MUST use activeX with Excel to do this. Again have a look at the link posted above, search the forums for Excel, have a look at the activeX examples in LV. What you want to do is not hard you will just have to change your program to use activeX.
    I could do an example for you but I only have 8.20. Maybe I'll do one later today and post it to the excel board and then someone could convert it to LV 7 for you.
    Message Edited by Jhoskins on 11-10-2006 09:54 AM
    Joe.
    "NOTHING IS EVER EASY"

Maybe you are looking for

  • Transfering Bridge (and files) between computers

    I will soon be switching over to a new computer, which means overhauling my files and unfortunately Bridge. I know that my labels and keywords will transfer since they are attached to the files themselves in the metadata, but what about my collection

  • Stuttering JPEGs

    I was doing finishing tweaks on this 20-minute video comprised of 150 JPEGS generated in Photoshop CS2. All were scanned prints except for a few scanned negatives. Having gotten everything else where I wanted I was still being plagued with stuttering

  • Intermittent colour rendering problem

    In the past few weeks I've noticed a problem with my Photoshop CS5 (12.0.4) / Windows 7 64-bit setup. Maybe once a day, after using Photoshop for a while, the current document's colours will look like they're using the wrong colour space, usually loo

  • How to create a mobile version of iWeb

    I need to convert my iWeb website to a mobile version, what is the easiest way to do this? What software or program should I use? I was told that creating a Wordpress Page is the simplest way

  • How to run java GUI application on embedded ARM linux board

    Hi friends, This is suresh. I am Embedded developer .Right now i am using Embedded linux board biased by TI OMAP IC (arm7) .This is working fine.Actually we created one jar application .It is working good in GPOS.But when i was running that jar file