Created
July 5, 2013 18:38
-
-
Save arkadyan/5936406 to your computer and use it in GitHub Desktop.
Paste CSV data into Numbers properly formatted into rows and columns.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set delim to "," | |
set the clipboard to my remplace(the clipboard as text, delim, tab) | |
on remplace(_t, _delim, _tab) | |
local l | |
set AppleScript's text item delimiters to _delim | |
set l to text items of _t | |
set AppleScript's text item delimiters to _tab | |
set _t to l as text | |
set AppleScript's text item delimiters to "" | |
return _t | |
end remplace | |
tell application "Numbers" | |
activate | |
tell application "System Events" | |
keystroke "v" using {command down} | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment