﻿CSVtoSwatch.jsx - Adobe Illustrator Script
Overview
This Adobe Illustrator script quickly creates color swatches from a CSV file. It supports CMYK and RGB, groups swatches, and automatically names them by color values if no name is provided.
Author: Katja Bjerrum (Productivista.com)
License: LGPL (Lesser General Public License)
Features
* Creates CMYK/RGB swatches.
* Generates swatch names from color values (C=XX M=XX Y=XX K=XX or R=XX G=XX B=XX) if no "Swatch Name" is specified in the CSV.
* Groups swatches using a Color Group Name column.
* Supports Spot, Global Process, and Process colors.
CSV Format
Your CSV needs a header row. Include C,M,Y,K for CMYK or R,G,B for RGB.
Optional columns: Color Group Name, Color Name.
Example CSV
Color Group Name,Color Name,C,M,Y,K,R,G,B
Brand Colors,Red,0,100,100,0,,,
Brand Colors,Green,,,,0,255,0
No Name Group,,,10,20,30,40,,

How to Use
1. Open Illustrator and an active document.
2. Run the script: File > Scripts > Other Script... and select CSVtoSwatch.jsx.
3. Choose color type (Spot, Global, Process).
4. Select your CSV file.
5. Swatches will appear in your Swatches panel.
Note
Invalid rows are skipped.