Importing CSV file into AddressBook: Major and Immediate Crash

I'll start with what I've already tried to solve this problem. I have read through several posts regarding other address book problems. I wanted to try the recommended deletion of file "homedirectory/library/application support/address book/AddressBook-v22.abcddb". That file does not seem to exist on my computer for me to even try delete it. I was able to locate the "libray folder" and get seamlessly to the "application support" folder, but there is no "address book" folder in the "application support" folder.
The problem is with importing a CSV file (created/saved from Outlook Express) into my Mac AddressBook. I've made 10 attempts and have gotten 10 crash messages. The first part of the crash message is posted below.
Is there anything I can do to solve this problem? Is it because I've created a CSV file from Outlook Express that it won't work? I have successfully imported other CSV files (like an old, ancient CSV file that I created from a nextel phone years ago and a family address file that I recently created on my MacBook in Excel.)
Here's the first page or so of the crash message... the entire report is about 28 pages:
Process: Address Book [254]
Path: /Applications/Address Book.app/Contents/MacOS/Address Book
Identifier: com.apple.AddressBook
Version: 5.0.1 (864)
Build Info: AddressBook-8640000~4
Code Type: X86-64 (Native)
Parent Process: launchd [144]
Date/Time: 2009-12-16 15:47:00.744 -0500
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
Interval Since Last Report: 994434 sec
Crashes Since Last Report: 10
Per-App Interval Since Last Report: 8923 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: 9EDF5817-9DD1-4C21-9CE5-F6882E750B54
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 11 Dispatch queue: com.apple.root.default-priority
Application Specific Information:
abort() called
* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (7) beyond bounds (7)'
* Call stack at first throw:
0 CoreFoundation 0x00007fff82bf7444 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff82d3b0f3 objcexceptionthrow + 45
2 CoreFoundation 0x00007fff82bf7267 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff82bf71f4 +[NSException raise:format:] + 148
4 Foundation 0x00007fff83fd5080 _NSArrayRaiseBoundException + 122
5 Foundation 0x00007fff83f37b81 -[NSCFArray objectAtIndex:] + 75
6 AddressBook 0x00007fff833af1df -[ABImportMappingModel(PrivateMappingToPersonConversion) addressDictionaryForMapping:rowData:localizedAddressMappings:] + 348
7 AddressBook 0x00007fff833af4d3 -[ABImportMappingModel(MappingToPersonConversion) personWithRowData:localizedAddressMappings:addressBook:] + 597
8 AddressBook 0x00007fff833ace87 __-[ABNewTextFileImportController import:]block_invoke1 + 153
9 Foundation 0x00007fff83f7a7d9 -[NSBlockOperation main] + 140
10 Foundation 0x00007fff83f6b06d -[__NSOperationInternal start] + 681
11 Foundation 0x00007fff83f6ad23 ___startOperations_block_invoke2 + 99
12 libSystem.B.dylib 0x00007fff8617ace8 dispatch_call_block_andrelease + 15
13 libSystem.B.dylib 0x00007fff86159279 dispatch_workerthread2 + 231
14 libSystem.B.dylib 0x00007fff86158bb8 pthreadwqthread + 353
15 libSystem.B.dylib 0x00007fff86158a55 start_wqthread + 13

Pamela MacBeginner wrote:
I'll start with what I've already tried to solve this problem. I have read through several posts regarding other address book problems. I wanted to try the recommended deletion of file "homedirectory/library/application support/address book/AddressBook-v22.abcddb". That file does not seem to exist on my computer for me to even try delete it.
it does exist on your computer. you are looking in the wrong library folder. you need the library folder in your home directory, not at the top level of the drive. click on the house icon in the sidebar of any finder window. that's your home directory. you can also get to it from the top level of the drive by going to /users/yourusername.
if deleting this file does not help try converting the CSV file to a vcard before importing it to AB. you can use this converter for example
http://homepage.mac.com/phrogz/CSV2vCard_v2.html
I was able to locate the "libray folder" and get seamlessly to the "application support" folder, but there is no "address book" folder in the "application support" folder.
The problem is with importing a CSV file (created/saved from Outlook Express) into my Mac AddressBook. I've made 10 attempts and have gotten 10 crash messages. The first part of the crash message is posted below.
Is there anything I can do to solve this problem? Is it because I've created a CSV file from Outlook Express that it won't work? I have successfully imported other CSV files (like an old, ancient CSV file that I created from a nextel phone years ago and a family address file that I recently created on my MacBook in Excel.)
Here's the first page or so of the crash message... the entire report is about 28 pages:
Process: Address Book [254]
Path: /Applications/Address Book.app/Contents/MacOS/Address Book
Identifier: com.apple.AddressBook
Version: 5.0.1 (864)
Build Info: AddressBook-8640000~4
Code Type: X86-64 (Native)
Parent Process: launchd [144]
Date/Time: 2009-12-16 15:47:00.744 -0500
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
Interval Since Last Report: 994434 sec
Crashes Since Last Report: 10
Per-App Interval Since Last Report: 8923 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: 9EDF5817-9DD1-4C21-9CE5-F6882E750B54
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 11 Dispatch queue: com.apple.root.default-priority
Application Specific Information:
abort() called
* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (7) beyond bounds (7)'
* Call stack at first throw:
0 CoreFoundation 0x00007fff82bf7444 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff82d3b0f3 objcexceptionthrow + 45
2 CoreFoundation 0x00007fff82bf7267 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff82bf71f4 +[NSException raise:format:] + 148
4 Foundation 0x00007fff83fd5080 _NSArrayRaiseBoundException + 122
5 Foundation 0x00007fff83f37b81 -[NSCFArray objectAtIndex:] + 75
6 AddressBook 0x00007fff833af1df -[ABImportMappingModel(PrivateMappingToPersonConversion) addressDictionaryForMapping:rowData:localizedAddressMappings:] + 348
7 AddressBook 0x00007fff833af4d3 -[ABImportMappingModel(MappingToPersonConversion) personWithRowData:localizedAddressMappings:addressBook:] + 597
8 AddressBook 0x00007fff833ace87 __-[ABNewTextFileImportController import:]block_invoke1 + 153
9 Foundation 0x00007fff83f7a7d9 -[NSBlockOperation main] + 140
10 Foundation 0x00007fff83f6b06d -[__NSOperationInternal start] + 681
11 Foundation 0x00007fff83f6ad23 ___startOperations_block_invoke2 + 99
12 libSystem.B.dylib 0x00007fff8617ace8 dispatch_call_block_andrelease + 15
13 libSystem.B.dylib 0x00007fff86159279 dispatch_workerthread2 + 231
14 libSystem.B.dylib 0x00007fff86158bb8 pthreadwqthread + 353
15 libSystem.B.dylib 0x00007fff86158a55 start_wqthread + 13

Similar Messages

  • Looking for a Notes app that I can import CSV files into?

    As the title says, I'm looking for a good notes application for my iPhone that I can import CSV files into. I have tried both Appigo and Notespark, but I can't easily scroll through them, as I have 2,000+ notes. Is there any app that I can import my notes into and also scroll through quickly? I'd like something that works similarly to how you scroll through songs on the iPhone/iTouch, with the column on the right where you can skip to songs (notes, in this case) that start with a certain letter.
    Thanks!

    Hi Tx Tar Heel,
    I've been using Office2HD: https://itunes.apple.com/us/app/office2-hd/id364361728?mt=8
    Its cheaper than Numbers and it also works for Word and PowerPoint files too. I like the Dropbox integration. I can start on my Office docs (Word, Excel, PowerPoint) in the office and then edit those files with Office2HD when I'm out of the office. Files saves right back to Dropbox so that when I get back to the office the files are already updated. Not bad for a $7.99 app!
    Hope this helps!
    ~Joe

  • Importing a csv file into addressbook

    So I did a search & found this question has come up quite often, but with the person having a slightly different problem, so here goes.
    I am trying to import a csv file into address book, when I go import -> text tile it comes up like it should do and I pick the file, if I select ok at this point, it will quite happily import all of the data no trouble (but in the wrong categories). So I make the changes to what I want ie. Phone other --> Phone (work). Then when I click ok, the button goes from blue to white but nothing happens.
    When I open the csv file in textedit I can see all the values separated by commas.
    Any Ideas?

    I too just had this problem. To clarify all fields work and you can map them. I found that the Outlook CSV file had two problems which were tripping up the AddressBook import function. Note these were both in street address fields so I suspect the poster who said that addresses don't work may have been having that problem.
    The CSV load program does not work if you have commas "," in your data. In my case this was very common for some European addresses as well as some company names. And then the second problem was if there was a carriage return or new line character in a field. This later one was a problem with the address fields. I suspect an AddressBook export to CSV might have this same issue. Specifically, when there were multiple lines to the street address, they had been entered as multiple lines in street address one, as opposed to entering them in multiple fields such as "street 1", "street 2", etc.
    To solve the problem I opened the CSV file using Numbers and did a global find and replace on: commas, substituting the string --- and on the newline character "¶" (ALT+Rreturn) with *.
    Note to reduce some of the remapping I also changed all of the labels with "business" in the header row of the CSV file to "work". This made it a little easier for the AddressBook import function to map fields more correctly.
    After these set of changes rather than the alternating blue then white with nothing behavior it cleanly loaded all of my names. I could then search for "---" and "*" in addressbook's search field to identify all addresses which I had to clean up.
    I hope that is helpful to someone else. The import function really does work. However, it is not robust enough to deal with certain oddities in one's data.

  • Best way to import csv file into sql server

    Hello DBAs
    always thankful for your help and one question, what is the best way to import a csv file into sql server ?

    and there is a
    Bulk Insert Task for the Control Flow.
    http://www.youtube.com/watch?v=ACuCU6IqO50
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • How do I import csv file into a SharePoint list?

    I am trying to use a PowerShell script to load data into a SharePoint list from a csv file. When I run my code, it seems to go through the process of loading the data into the list. However when I go to my list, all I see is "System.Object[]" displayed
    in the first column of all my rows with no other data displayed. When I check my csv file, I see a ton of data (several rows and columns) but that is not being moved to my SharePoint list. This is what my script looks like
    if((Get-PSSnapin | Where {$_.Name -eq “Microsoft.SharePoint.PowerShell”}) -eq $null) {
    Add-PSSnapin Microsoft.SharePoint.PowerShell
    $web = Get-SPWeb http://link to web
    $list = $web.lists["List Name"]
    $recordsNumber = 0
    foreach($i in Import-CSV myCSVFile.csv)
    $new = $list.Items.Add()
    $new["Title"] = $i.Title,
    $new["FirstName"] = $i.FirstName,
    $new["LastName"] = $i.LastName
    $new.Update()
    $recordsNumber++
    "Added " + $recordsNumber.ToString() + " records."
    "Done. Press any key to continue..."
    $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
    Any ideas on how to fix this, and get my list populated with data?

    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
    Add-PsSnapin Microsoft.SharePoint.PowerShell
    $host.Runspace.ThreadOptions = "ReuseThread"
    #Open SharePoint List
    $SPServer=http://SOMESERVER
    $SPAppList="/Lists/List Name/"
    $spWeb = Get-SPWeb $SPServer
    $spData = $spWeb.GetList($SPAppList)
    $InvFile="myCSVFile.csv"
    # Get Data from Inventory CSV File
    $FileExists = (Test-Path $InvFile -PathType Leaf)
    if ($FileExists) {
    "Loading $InvFile for processing..."
    $tblData = Import-CSV $InvFile
    } else {
    "$InvFile not found - stopping import!"
    exit
    # Loop through Applications add each one to SharePoint
    "Uploading data to SharePoint...."
    foreach ($row in $tblData)
    "Adding entry for "+$row."Application Name".ToString()
    $spItem = $spData.AddItem()
    $spItem["Title"] = $row."Title".ToString()
    $spItem["FirstName"] = $row."FirstName".ToString()
    $spItem["LastName"] = $row."LastName".ToString()
    $spItem.Update()
    "Upload Complete"
    $spWeb.Dispose()
    Link
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to gracefully import CSV files into Numbers.app v3?

    I've posted this as a question at Stack Exchange, also…
    I have a process, which has worked faithfully for years in Numbers '09, whereby I download my Bank account data in CSV format, then drag that data directly into my Numbers sheet (after creating an appropriate number of blank rows).
    This no longer works, and I can't find an option to import csv! A help search within numbers for 'csv' returns a single result which describes exporting.
    I've tried the old method, no dice. Also, the menu option: Insert > Choose… doesn't permit .csv to be selected.
    At the moment, my workaround is:
    drag the CSV onto the Numbers dock or task-switcher icon to create a temp sheet
    select and copy the content
    paste-and-match-format into my desired location
    close don't save the temp file
    Doe anyone know a better way? A hack or hidden flag I can toggle to get the old functionality back?

    Hi David,
    Your CSV file seems to be a hybrid (mongrel). Where did it originate?
    Regions that use a full-stop (.) as as the decimal point use comma (,) as the separator in CSV files. But wait, there is more! CSV can also mean Character Separated Values, and that character could be semi-colon (;) or Tab.
    Are you able to open that file in TextEdit or Pages or Word and replace the separator? Replacing ; with Tab may work.
    I must admit that I have never had trouble with CSV opening in Numbers with a double-click in Finder. For example, my bank statements download with what works in my Region (strings enclosed with "double quotes" and columns separated by commas and numbers with a full-stop as the decimal point. Maybe I am just lucky. .
    Regards,
    Ian.

  • Importing CSV files into Multiple Tables in One Database

     I have a web based solution using Microsoft SharePoint and SQL Server that is created to centralize dat collection and reporting of program metrics used in montly reviews.
    A person from each program enters dat manual or by pushing the data using automated data import tools. The user then is able to generate reports and provide presentations to their stakeholders.
    There are are programs that are located in US and 2 that are located in Japan. All, including programs in Japan use the MS Project with a plug-in tool that allows them to auto input data. When the user click the "Send To.." button, the data goes
    in to multiple tables in one database.
    Everything is set up exactly the same for every program; however, we have discovered becase of a firewall, along with some of the different settings that the MS Project has over in Japan, the 2 program users are not able to auto import their data.
    The suggestion is to have the program users export the MS Project file into a CSV and email it. I will then take it and convert the data, such as the dates and place them on a Network Drive. There will be 2 folders, one for each program.
    I feel it will be an easy process just to load the data from the Network Drive into the same tables that are created for auto import.
    My Concerns/Questions:
    1. Should I create 1 SSIS package or should there be 2, one for each program?
    2. US and Japan program users send their data once a month. The converted files are going to be saved in the location marked with a date (ex:201402). How can i have it to where SSIS will automatically load the data every time i place new files in the designated
    folders or when i update an exsisting file?
    Can you provide an example with your suggestion please?
    I greatly appreciate the assistance!
    Y_Tyler

    Hello Vikash,
    Thank you! This will help me get started.
    There will be 2 folders, one with files with Program A data and the other with files with Program B data. All will have the same fields, just coming from different programs. You stated that I will be able to to load both in one package. Would there be two
    paths since there will be two separate folders?
    Using the example you provided, i am confident that I can create the package using one path into one table but not sure how to get the files from 2 paths (if there is) into multiple tables.
    Can you help clarify this for me?
    Thank you!
    Y_Tyler

  • Problem import csv file with SQL*loader and control file

    I have a *csv file looking like this:
    E0100070;EKKJ 1X10/10 1 KV;1;2003-06-16;01C;75
    E0100075;EKKJ 1X10/10 1 KV;500;2003-06-16;01C;67
    E0100440;EKKJ 2X2,5/2,5 1 KV;1;2003-06-16;01C;37,2
    E0100445;EKKJ 2X2,5/2,5 1 KV;500;2003-06-16;01C;33,2
    E0100450;EKKJ 2X4/4 1 KV;1;2003-06-16;01C;53
    E0100455;EKKJ 2X4/4 1 KV;500;2003-06-16;01C;47,1
    I want to import this csv file to this table:
    create table artikel (artnr varchar2(10), namn varchar2(25), fp_storlek number, datum date, mtrlid varchar2(5), pris number);
    My controlfile looks like this:
    LOAD DATA
    INFILE 'e:\test.csv'
    INSERT
    INTO TABLE ARTIKEL
    FIELDS TERMINATED BY ';'
    TRAILING NULLCOLS
    (ARTNR, NAMN, FP_STORLEK char "to_number(:fp_storlek,'99999')", DATUM date 'yyyy-mm-dd', MTRLID, pris char "to_number(:pris,'999999D99')")
    I cant get sql*loader to import the last column(pris) as I want. It ignore my decimal point which in this case is "," and not "." maybe this is the problem. If the decimal point is the problem how can I get oracle to recognize "," as a decimal point??
    the result from the import now, is that a decimal number (37,2) becomes 372 in the table

    Set NLS_NUMERIC_CHARACTERS environment variable at OS level, before running SqlLoader :
    $ cat test.csv
    E0100070;EKKJ 1X10/10 1 KV;1;2003-06-16;01C;75
    E0100075;EKKJ 1X10/10 1 KV;500;2003-06-16;01C;67
    E0100440;EKKJ 2X2,5/2,5 1 KV;1;2003-06-16;01C;37,2
    E0100445;EKKJ 2X2,5/2,5 1 KV;500;2003-06-16;01C;33,2
    E0100450;EKKJ 2X4/4 1 KV;1;2003-06-16;01C;53
    E0100455;EKKJ 2X4/4 1 KV;500;2003-06-16;01C;47,1
    $ cat artikel.ctl
    LOAD DATA
    INFILE 'test.csv'
    replace
    INTO TABLE ARTIKEL
    FIELDS TERMINATED BY ';'
    TRAILING NULLCOLS
    (ARTNR, NAMN, FP_STORLEK char "to_number(:fp_storlek,'99999')", DATUM date 'yyyy-mm-dd', MTRLID, pris char "to_number(:pris,'999999D99')")
    $ sqlldr scott/tiger control=artikel
    SQL*Loader: Release 10.1.0.3.0 - Production on Sat Nov 12 15:10:01 2005
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Commit point reached - logical record count 6
    $ sqlplus scott/tiger
    SQL*Plus: Release 10.1.0.3.0 - Production on Sat Nov 12 15:10:11 2005
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from artikel;
    ARTNR      NAMN                      FP_STORLEK DATUM      MTRLI       PRIS
    E0100070   EKKJ 1X10/10 1 KV                  1 16/06/2003 01C           75
    E0100075   EKKJ 1X10/10 1 KV                500 16/06/2003 01C           67
    E0100440   EKKJ 2X2,5/2,5 1 KV                1 16/06/2003 01C          372
    E0100445   EKKJ 2X2,5/2,5 1 KV              500 16/06/2003 01C          332
    E0100450   EKKJ 2X4/4 1 KV                    1 16/06/2003 01C           53
    E0100455   EKKJ 2X4/4 1 KV                  500 16/06/2003 01C          471
    6 rows selected.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $ export NLS_NUMERIC_CHARACTERS=',.'
    $ sqlldr scott/tiger control=artikel
    SQL*Loader: Release 10.1.0.3.0 - Production on Sat Nov 12 15:10:41 2005
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Commit point reached - logical record count 6
    $ sqlplus scott/tiger
    SQL*Plus: Release 10.1.0.3.0 - Production on Sat Nov 12 15:10:45 2005
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from artikel;
    ARTNR      NAMN                      FP_STORLEK DATUM      MTRLI       PRIS
    E0100070   EKKJ 1X10/10 1 KV                  1 16/06/2003 01C           75
    E0100075   EKKJ 1X10/10 1 KV                500 16/06/2003 01C           67
    E0100440   EKKJ 2X2,5/2,5 1 KV                1 16/06/2003 01C         37,2
    E0100445   EKKJ 2X2,5/2,5 1 KV              500 16/06/2003 01C         33,2
    E0100450   EKKJ 2X4/4 1 KV                    1 16/06/2003 01C           53
    E0100455   EKKJ 2X4/4 1 KV                  500 16/06/2003 01C         47,1
    6 rows selected.
    SQL>                                                                            Control file is exactly as yours, I just put replace instead of insert.

  • Importing .avi file into Premiere CS5 and losing on quality

    Hello Adobe users,
    I'm having a problem with importing my material in Premiere CS5. It's file extension is .avi and I'm not sure which step I do wrong to get his but it's pretty important to me to find out what's the problem.
    Every time I try to import material which was captured on another computer, I get it all lossy in Premiere and it's really obvious.
    Maybe I make mistake with opening new project?
    I'm not sure which camera is used, but I'm sure it's Panasonic and it films in cinemascope (widescreen).
    I would really appreciate your help here!
    Thanks in advance, Filip!

    Flip,
    Welcome to the forum.
    AVI can hold all sorts of things, and those will be all important in addressing your problem. This ARTICLE goes into more detail, and shows how to "peek inside the AVI wrapper." Please let us know what CODEC is used in that file.
    How are you Importing/Capturing the AVI file?
    What Sequence Preset was chosen?
    Good luck,
    Hunt

  • Import csv files into Ical

    Is there a way to import csv into Ical? I need the "importing csv into Ical" for dummies version. Thanks.

    There are no plans to add that functionality that I am aware of. I am usually not informed of updates until it comes out.
    There is a 3rd party program that allows you to sync with Palm desktop calendar.
    Check out this program called companionlink for google.
    http://www.companionlink.com/products/companionlinkforgoogle.html
    Post relates to: Palm i705

  • Import and view CSV Files into OTM

    Hi All,
    Can you please help me in importing CSV files into Oracle Test Manager and to view the imported files in OTM.

    Hi,
    I have just googled and find the link :)
    http://oracleats.com/blog/?p=785

  • Help reading .csv file into an arraylist

    i need to read a csv file into an arraylist and then print the arraylist to the screen.
    using:
    try {
                // Setup our scanner to read the file at the path c:\test.txt
                Scanner myscanner = new Scanner(new File("\\carsDB.csv"));    
    ArrayList<CarsClass> carsClass = new ArrayList<CarsClass>(" write all fields");   
                while (myscanner.hasNextLine()) {
    myscanner.add(" add car fields to the carClass");              // Write your code here.
    // loop to read them all to the screencsv file is like this:
    Manufacturer,carline name,displ,cyl,fuel,(miles),Class
    CHEVROLET,CAVALIER (natural gas),2.2,4,CNG,120,SUBCOMPACT CARS
    HONDA,CIVIC GX (natural gas),1.6,4,CNG,190,SUBCOMPACT CARS
    FORD,CONTOUR (natural gas),2,4,CNG,70,COMPACT
    FORD,CROWN VICTORIA (natural gas),4.6,8,CNG,140/210*,LARGE CARS
    FORD,F150 PICKUP (natural gas) - 2WD,5.4,8,CNG,130,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 PICKUP (natural gas) - 2WD,5.4,8,CNG,160,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 PICKUP (natural gas) - 2WD,5.4,8,CNG,150/210*,STANDARD PICKUP TRUCKS 2WD
    FORD,F150 PICKUP (natural gas) - 4WD,5.4,8,CNG,130,STANDARD PICKUP TRUCKS 4WD
    FORD,F250 PICKUP (natural gas) - 4WD,5.4,8,CNG,160,STANDARD PICKUP TRUCKS 4WD
    FORD,E250 ECONOLINE (natural gas) - 2WD,5.4,8,CNG,170,"VANS, CARGO TYPE"
    FORD,E250 ECONOLINE (natural gas) - 2WD,5.4,8,CNG,80,"VANS, CARGO TYPE"
    FORD,F150 LPG - 2WD,5.4,8,LPG,290/370*,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 LPG - 2WD,5.4,8,LPG,260/290/370**,STANDARD PICKUP TRUCKS 2WD
    ok, so do i need to write a file carsclass.java or is the line:
    ArrayList<CarsClass> carsClass = new ArrayList<CarsClass>(" write all fields");
    going to define my carsclass objects? how do i write my fields for each of the 7 categories?
    i believe i can easily add to and print the arraylist, but i'm confused how to go about creating this arraylist in the first place. do i just create carclass.java and save them all as strings? i guess my question is mainly how should i structure this? any suggestions/help is appreciated.
    Edited by: scottc on Nov 15, 2007 5:55 PM

    String.split uses regular expressions.Ahh yeah ummm (slaps forehead) I'd forgotten that... so maybe StringTokeniser is more accessible for noob's. Sorry.
    Anyway... if all you want/need to so is store a bunch of String field values then how about using an array of String's instead of individual fields... maybe something like:
    forums\Car.java
    * Car Data Transfer Object. All fields are final, making objects of this class
    * thread safe(r).
    * @author keith
    package forums;
    import krc.utilz.stringz.Arrayz;
    public class Car
      // class attributes                       // variables //isn't actually wrong, it's just not quit right.
      private final String[] fields;            // final means values are write once, read many times, which is thread safe(r).
       * Initialises the new Cars fields to the given fields array.
       * @param fields - an array of any (reasonable) length
      public Car(String[] fields) {             // no need to comment a constructor as a constructor.
        this.fields = fields;                   // much better to provide javadoc comments explaining
      }                                         // what the method does and how to use it.
       * Returns this Car's fields as one long string.
      public String toString() {                // It's actually GOOD to be a lazy programmer.
        return Arrayz.join(", ", this.fields);  // I have reused my Arrayz.join in several projects.
                                                // I think you can use Array.toString (new in 1.6) instead.
    krc\utilz\stringz\Arrayz.java
    package krc.utilz.stringz;
    import java.util.List;
    import java.util.ArrayList;
    public class Arrayz
        * returns true if the given value is in the args list, else false.
        * @param value - the value to seek
        * @param args... - variable number of String arguments to look in
      public static boolean in(String value, String... args) {
        for(String a : args) if(value.equals(a)) return true;
        return false;
        * append the elements of array into one string, seperated by FS
        * @param a  - an array of strings to join together
        * @param FS - Field Seperator string, optional default=" "
        * @example
        *  String[] array = {"Bob","The","Builder"};
        *  System.out.println(join(array);
        *  --> Bob The Builder
        *  System.out.println("String[] array = {\""+join(array, "\",\"")+"\"};");
        *  --> String[] array = {"Bob","The","Builder"};
      public static String join(String FS, String[]... arrays) {
        StringBuffer sb = new StringBuffer();
        for (String[] array : arrays)
          sb.append(join(array, FS));
        return(sb.toString());
      public static String join(String[] array) {
        return(join(array, " "));
      public static String join(String[] a, String FS) {
        if (a==null) return null;
        if (a.length==0) return "";
        StringBuffer sb = new StringBuffer(a[0]);
        for (int i=1; i<a.length; i++) {
          sb.append(FS+a);
    return sb.toString();
    * append all the elements of the given arrays into one big array
    * @param String[]... arrays - to be concatenated
    * @return String[] - one big array
    public static String[] concatenate(String[]... arrays) {
    List<String> list = new ArrayList<String>();
    for(String[] array : arrays) {
    for(String item : array) {
    list.add(item);
    return(list.toArray(new String[0]));
    I guess that Arrayz class might be a bit beyond you at the moment so don't worry too much if you can't understand the code... there are no nasty surprises in it... just cut and paste the code, change the package name, and use it (for now).

  • Dropping csv file into a cell?

    After updating "Numbers", I can no longer call drop csv files into a cell and have the row complete. What am I missing here?

    Hello fellow sufferers of CSV headaches from commas within fields and ; instead of , etc.. They've been around as long as I can remember. 
    If you don't want to use Excel (which is good at this sort of thing), this script should help. (Dropbox download, AppleScript file). The effect is similar to Excel's Text to Columns but the usage is slightly different.
    If you end up with text all in one column as Cuky describes, you simply select the body cells in that column containing the text, run the script, click on a cell (the first cell in the body of the next column to the right often works best) and paste.
    The results here look like this:
    I deliberately made the unexpanded column untidy and threw some difficult things at it, and it did a pretty good job in testing here. Return or shift-return within a field, even if quoted, will cause Numbers to move to a new line, but that's a Numbers thing that can't be helped. Otherwise, it handles the usual csv conventions better than expected.
    If your separator is ; instead of , there is a place you can change that it the script.
    If you frequently import data, this is easily placed in the menu, either as an Automator Service or under Scripts.
    And it could be modified to read a csv file rather than grabbing values already in a Numbers column, making it almost as convenient as the old drag and drop. It could ask for the csv file and put the results on the clipboard for pasting into a table.
    If there is interest in that let me know. And suggestions/feedback on this one welcome.
    SG

  • Importing RAW files into Photoshop CC

    Since I've updated my Photoshop CC to version 14 I've one problem.
    After I did import my files into Adobe RAW and after I finetuned in Adobe RAW I want to improve my details into Photoshop CC.
    BUT: after I have ordered Adobe RAW tot opent he files into PS nothing hasppens, PS does not react.
    I only can save the file to e.g. TIFF or DNG files and after that I can open the files in Photoshop.
    That's awefull!
    Any solution??
    with kind regards
    Plomp G.W.

    PS CC 2014 is the current version.  PS CC 14.2.1 is the previous version.
    What OS are you running:  Windows 8.1, Mavericks 10.9.3 or something else?
    The general advice would be to uninstall and reinstall Photoshop.

  • Exact file-structure of .csv to import without problems into AddressBook?

    Hello,
    i tried to import a .csv-file into my osx-address-book. Everything seemed to be all right but after klicking OK for the import nothing happened. I had to cancel. I think that the structure of my .csv-file is not compatible with address book. If i use AddressBookImporter everything is working but I guess that it's easier to import the data directly so my question is if anybody here knows more about the structure of the .csv-file address book expects?
    thank you.
    Andre

    field1,field2,field3,return
    field1,field2,field3,return
    As long as the fields are in the same sequence, it doesn't matter what sequence it is. When AB tries the import it will give you a dialog box allowing you to associate each field in your file with the appropriate field (last, first, email etc) in AB.
    If this isn't appearing then you should get an error message saying the file is not csv.
    Make sure when you click Import that you select the text file option.
    You could try pasting this into text edit and saving it - I have just tried it here and it worked.
    Joe,Smith,[email protected]
    Pete,Murphy,[email protected]
    AK

Maybe you are looking for