Adobe Illustrator CS5 Type Library JS: Preferences

Illustrator CS5

Class

Preferences

 Preferences for Illustrator.

QuickLinks

getBooleanPreference, getIntegerPreference, getRealPreference, getStringPreference, removePreference, setBooleanPreference, setIntegerPreference, setRealPreference, setStringPreference

Hierarchy

Object
Preferences

Properties

PropertyTypeAccessDescription
AutoCADFileOptionsOpenOptionsAutoCAD readonlyOptions to use when opening or placing a AutoCAD file.
FreeHandFileOptionsOpenOptionsFreeHand readonlyOptions to use when opening or placing a FreeHand file.
PDFFileOptionsOpenOptionsPDF readonlyOptions to use when opening or placing a PDF file.
parentObject readonlyThe object's container.
photoshopFileOptionsOpenOptionsPhotoshop readonlyOptions to use when opening or placing a Photoshop file.
typenamestring readonlyThe class name of the object.

Methods

Instances

bool getBooleanPreference (key: string)
Retrieve the value of the application preference key as boolean.

ParameterTypeDescription
keystringThe preference key.

int getIntegerPreference (key: string)
Retrieve the value of the application preference key as integer.

ParameterTypeDescription
keystringThe preference key.

number getRealPreference (key: string)
Retrieve the value of the application preference key as real number.

ParameterTypeDescription
keystringThe preference key.

string getStringPreference (key: string)
Retrieve the value of the application preference key as string type.

ParameterTypeDescription
keystringThe preference key.

void removePreference (key: string)
Delete the application preference key.

ParameterTypeDescription
keystringThe preference key.

void setBooleanPreference (key: string, value: bool)
Set the value of the application preference key as boolean.

ParameterTypeDescription
keystringThe preference key.
valueboolThe boolean value of the preference key.

void setIntegerPreference (key: string, value: int)
Set the value of the application preference key as integer.

ParameterTypeDescription
keystringThe preference key.
valueintThe boolean value of the preference key.

void setRealPreference (key: string, value: number)
Set the value of the application preference key as real number.

ParameterTypeDescription
keystringThe preference key.
valuenumberThe real value of the preference key.

void setStringPreference (key: string, value: string)
Set the value of the application preference key as string type.

ParameterTypeDescription
keystringThe preference key.
valuestringThe string value of the preference key.

Element of

Application.preferences

Jongware, 27-Jun-2010 v3.0.3dContents :: Index