Methods
aATAddItem(sessionIndex, destinationSequenceID, destinationIndex, srcItemIDData, type)
→ String
Add the specified to the sequencer.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to add.
destinationSequenceID
Int32
The UID for the owning sequence.
destinationIndex
Int32
The item UID where to insert.
srcItemIDData
String
The item ID of the item to construct.
type
String
The source of the item to construct.
Clear the sequencer.
aATDuplicateItem(sessionIndex, item)
→ String
Duplicates the specified item(s) from the sequencer.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to add.
aATEditItem(sessionIndex, item)
→ String
Opens the specified item from the sequencer in the item editor.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to add.
Retrieves a boolean indicating the presence of errors in the last script to execute.
aATExecuteSession()
→ void
Executes the active session in the sequencer.
aATExecuteSessionFromFile(file)
→ void
Executes the active session in the sequencer.
file
File
Execute a session file.
aATFileRelativeChanged(path, relative, newRelative)
→ String
Switches a files relative token and path.
path
String
The path relative to the folder specified by Relative.
relative
String
The current relative path token.
newRelative
String
The new relative path token.
aATFileSaveDialog(path, relative, type)
→ String
Prompts the user to save a file or choose a file or directory and returns a relative path string to the file.
path
String
The path relative to the folder specified by Relative.
relative
String
The current relative path token.
type
String
The type of dialog to show in string format.
aATGetEditorDialogFile()
→ File
Retrieves a file path to the AAT editor swf.
aATGetErrorDialogFile()
→ File
Retrieves a file path to the AAT error dialog swf.
aATGetListOfRelativePaths()
→ String
Gets an XML string listing the relative paths and the UI strings to display them.
Get the active session for the sequncer.
aATLoadLibExtension()
→ String
Loads a session file as an extension to the editor.
Loads the aat model to the editor.
Loads a session into the sequencer.
Loads a UI description as an extension to the editor.
aATMoveItem(sessionIndex, moveThisID, newSessionIndex, destinationSequenceID, destinationIndex)
→ String
Moves the specified in the sequencer.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to move.
moveThisID
String
The UID of the item to replace.
newSessionIndex
Int32
The index in the session of the destination top-most sequence.
destinationSequenceID
String
The UID for the owning sequence.
destinationIndex
Int32
The index where to insert.
aATRemoveItem(sessionIndex, item)
→ String
Removes the specified item from the sequencer.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to add.
aATReplaceItem(sessionIndex, replaceThisID, srcItemIDData, type)
→ String
Replaces the specified to the sequencer.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to add.
replaceThisID
Int32
The UID of the item to replace.
srcItemIDData
String
The item ID of the item to construct.
type
String
The source of the item to construct.
Saves the active session in the sequencer to a new file.
Saves the active session in the sequencer to a file.
applyDataToItem(sessionIndex, item, data)
→ String
Applies the data used in the item editor to the item.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to edit.
data
String
The data to apply in XML format.
applySingleDataPointToItem(sessionIndex, item, dataID, data)
→ Boolean
Applies data to the specified item from the sequencer in the item editor.
sessionIndex
Int32
The index in the session of the top-most sequence for the item to add.
dataID
String
The data to apply in XML format.
data
String
The data to apply in XML format.
beep()
→ void
beginSyncSettingsAutomationTest()
→ Boolean
Starts the automation tests for the Sync Settings feature.
beginTypekitFontAutomationTest()
→ Boolean
Starts the automation tests for the Typekit Font feature.
concatenateMatrix(matrix, secondMatrix)
→ Matrix
Concatenate two transformation matrices.
matrix
Matrix
The matrix that is to be added to.
secondMatrix
Matrix
Second transformation matrix.
concatenateRotationMatrix(matrix, angle)
→ Matrix
Concatenate a rotation matrix to a transformation matrix.
matrix
Matrix
The matrix that is to be added to.
angle
Number
Angle of rotation (in degrees)
concatenateScaleMatrix(matrix, scaleX? , scaleY? )
→ Matrix
Concatenate a scale matrix to a transformation matrix.
matrix
Matrix
The matrix that is to be added to.
scaleX?
Number
Horizontal scaling factor expressed as a percentage (100 = 100%)
scaleY?
Number
Vertical scaling factor expressed as a percentage (100 = 100%)
concatenateTranslationMatrix(matrix, deltaX? , deltaY? )
→ Matrix
Concatenate a translation to a transformation matrix.
matrix
Matrix
The matrix that is to be added to.
deltaX?
Number
Horizontal transformation.
deltaY?
Number
Vertical transformation.
convertSampleColor(sourceColorSpace, sourceColor, destColorSpace, colorConvertPurpose, sourceHasAlpha? , destHasAlpha? )
→ Number []
Converts a sample-component color from one color space to another.
sourceColor
Number []
The color to convert, an array of color components. First location of the array should contain alpha if source-has-alpha is true.
sourceHasAlpha?
Boolean
True if alpha channel is present in source color.
destHasAlpha?
Boolean
True if alpha channel is present in destination color.
copy()
→ void
Copy current selection to the clipboard.
cut()
→ void
Cut current selection to the clipboard.
deleteWorkspace(workspaceName)
→ Boolean
Deletes an existing workspace.
workspaceName
String
Workspace Name.
doScript(action, from, dialogs? )
→ void
Play an action from the Actions Palette.
action
String
The name of the action to play (note that the case of letters in the Action name is important and must match the case of the name in the Actions palette)
from
String
The name of the action set containing the action being played (note that the case of letters in the Action Set name is important and must match the case of the name in the Actions palette)
dialogs?
Boolean
Are dialog boxes associated with the action to be presented?
dumpPGFFile(file, documentColorSpace? , pGFFile)
→ Boolean
Dump the PGF portion of ai file to txt file.
file
File
The AI file to be opened.
documentColorSpace?
DocumentColorSpace
Choose color space only for documents saved with multiple color models (pre-Illustrator 9)
pGFFile
File
Folder to save the output PGF file.
executeMenuCommand(menuCommandString)
→ void
Executes a menu command using the menu shortcut string.
menuCommandString
String
Menu command shortcut.
getCCXUserJSONData(mode? )
→ String
Returns the JSON Data required by CCX Welcome.
mode?
String
Mode for which the data is to be provided.
Retrieves a string containing the results of the last script to execute.
Returns the JSON Data required by Hello.
Returns an identity matrix.
Returns if the specified filePath is open.
filePath
String
The filePath to be checked.
Get detailed info from the specified PPD file.
name
String
The model name of the PPD file.
getPresetFileOfType(presetType)
→ File
Given a preset type, returns the full path to the application's default document profile for the type.
Given a preset name, tries and retrieves the settings from the preset template.
preset
String
The name of the preset.
getRotationMatrix(angle? )
→ Matrix
Returns a rotation transformation matrix.
angle?
Number
Angle of rotation (in degrees)
getScaleMatrix(scaleX? , scaleY? )
→ Matrix
Returns a scale transformation matrix.
scaleX?
Number
Horizontal scaling factor expressed as a percentage (100 = 100%)
scaleY?
Number
Vertical scaling factor expressed as a percentage (100 = 100%)
getScriptableHelpGroup()
→ Varies
Get the scriptable help group object that represents the search widget in the app bar.
getTranslationMatrix(deltaX? , deltaY? )
→ Matrix
Returns a translation matrix.
deltaX?
Number
Horizontal transformation.
deltaY?
Number
Vertical transformation.
Retrieves a string representing the AAT version.
Invert a matrix.
matrix
Matrix
The matrix to invert.
isEqualMatrix(matrix, secondMatrix)
→ Boolean
Compares two matrices for equality.
matrix
Matrix
First transformation matrix to compare.
secondMatrix
Matrix
Second transformation matrix.
Checks if fill is active or not.
Tests if a matrix is singular (cannot be inverted)
matrix
Matrix
The matrix to check.
Checks if stroke is active or not.
Is In Touch Workspace.
isUserSharingAppUsageData()
→ Boolean
Is user sharing the application usage data.
launchExtension(extensionID)
→ Int32
Launch cep Extension given its ID.
extensionID
String
Arguments for Launching Extension - ID of extension in manifest.xml of corresponding extension.
loadAction(actionFilePath)
→ void
Load an action into action palette.
actionFilePath
File
The path on the system of the action file to be loaded.
loadColorSettings(fileSpec)
→ void
Load the color settings from the file. If the file is an empty file spec, the color management will be turned off.
fileSpec
File
File spec for the color settings.
open(file, documentColorSpace? , options? )
→ Document
Open the specified document file.
file
File
The file to be opened.
documentColorSpace?
DocumentColorSpace
Choose color space only for documents saved with multiple color models (pre-Illustrator 9)
options?
Varies
Options for opening a particular type of file.
Open the specified cloud document.
cloudPath
String
Path of the document to be opened from cloud.
openCloudLibraryAssetForEditing(assetURL, thumbnailURL, assetType, options? )
→ Document
For Internal Use.
assetURL
File
For Internal use.
thumbnailURL
File
For Internal use.
assetType
String
For internal use.
options?
Varies
For internal use.
paste()
→ void
Paste clipboard into the current document.
quit()
→ void
Quit the application.
redo()
→ void
Redo the last transaction.
redraw()
→ void
Force Illustrator to redraw its window(s)
reflectCSAW(outputFolder)
→ void
Generate Creative Suite ActionScript Wrappers in specified directory.
outputFolder
File
Location for the output files.
Resets the current workspace.
runAPITest(testName)
→ void
Runs API Tests from the TestAPI Plug-in.
testName
String
Arguments for Running Tests - eg. Name of Test/Suite.
saveWorkspace(workspaceName)
→ Boolean
Saves a new workspace.
workspaceName
String
Workspace Name.
Select tool using toolname.
sendScriptMessage(pluginName, messageSelector, inputString)
→ String
Sends the script message to the required plugin.
pluginName
String
Plugin to which message needs to be sent.
messageSelector
String
Functionality that is to be executed.
inputString
String
Pass any data encoded in a string.
setThumbnailOptionsForCloudLibrary(options)
→ void
For Internal Use.
options
Varies
Options for the PNG24 export.
showColorPicker(color)
→ Color
Invokes application's color picker.
color
Color
The color to load in the color picker initially.
showLearnPanelWithContent(manifest, hTMLPage)
→ Boolean
Display learn panel with specific content.
manifest
String
Path of the manifest.
hTMLPage
String
Url of the html file to be displayed on learn panel.
showPresets(fileSpec)
→ String []
Get presets from the file.
fileSpec
File
File spec to import from.
switchWorkspace(workspaceName)
→ Boolean
Switches between workspaces.
workspaceName
String
Workspace Name.
translatePlaceholderText(text)
→ String
Translate the placeholder text to regular text. A method to enter unicode points in hex values.
text
String
The placeholder text to be translated.
translateString(key, source)
→ String
Returns a string translated from the key and source data passed in.
key
String
The string to translate.
source
String
The plugin name from the source of the key.
undo()
→ void
Undo the last transaction.
unloadAction(setName, actionName)
→ void
Unloads an action into action palette.
setName
String
Name of the set to be unloaded.
actionName
String
Name of the action to be unloaded.