parseSwatchFile()

app.parseSwatchFile(file)

Description

Loads color swatch data from an Adobe Swatch Exchange (ASE) file.

Parameters

file The file specification, an ExtendScript File object.

Returns

The swatch data, in this format:

data.majorVersion
data.minorVersion
The ASE version number.
data.values An array of SwatchValue.
SwatchValue.type One of RGB”, “CMYK”, “LAB”, “Gray”
SwatchValue.r
SwatchValue.g
SwatchValue.b
When type = “RGB”, the color values in the range [0.0..1.0].
0, 0, 0 is Black.
SwatchValue.c
SwatchValue.m
SwatchValue.y
SwatchValue.k
When type = “CMYK”, the color values in the range [0.0..1.0].
0, 0, 0, 0 is White.

SwatchValue.L
SwatchValue.a
SwatchValue.b
When typ e = “L AB”, the color values.
L is in the range [0.0..1.0]. a and b are in the range [-128.0..+128.0]
0, 0, 0 is Black.
SwatchValue.value When type = “Gray”, the value range is [0.0..1.0].
0.0 is Black.

Other Tags

Posted in Application object and tagged , , , , , , , , .