19660 Views 3 Replies Latest reply: Sep 11, 2009 8:06 PM by YoungIn
I've not had any luck Pasting CSV data into Numbers. Better to create a TEXT file with a .CSV Suffix and Open it from the Numbers File Menu, or Drag the .CSV file to the Numbers Icon in the Dock. This will open a new Numbers Document from the .CSV file, with the data separated into columns as dictated by the commas. Now you can Copy the Table of data from the new Numbers Document and Paste it into your current Numbers Document.
(1) paste in a Word processor document, export it as text file with the extension name ".csv"
If the used separator is matching Numbers requirements you will be able to import it in Numbers.
The requirements are simple:
if your system uses period as decimal separator, your CSV file must use comma to separate values.
if your system uses comma as decimal separator, your CSV file must use semicolon to separate values.
(2) you may use this script
if character 2 of (0.5 as text) is "." then
set delim to ","
set delim to ";"
-- set delim to "@" -- If your source doesn't match Numbers requirements, activate this instruction and edit the value to fit your needs.
set the clipboard to my remplace(the clipboard as text, delim, tab)
on remplace(t, d1, d2)
set AppleScript's text item delimiters to d1
set l to text items of t
set AppleScript's text item delimiters to d2
set t to l as text
set AppleScript's text item delimiters to ""
Copy your CSV datas
run the script
paste where you want.
Yvan KOENIG (from FRANCE mardi 3 février 2009 17:07:59)