Render.ru

Как использовать тип enumeration в скриптах на Jav

#1
Как использовать тип enumeration в скриптах на Java?
При выполнении приведенного ниже скрипта ругается, что "aiLevel2" не определено и т.д.

Что неправильно?
Заранее спасибо!

///////////////////////////////////////////////////////////////
numDocuments = documents.length;

for ( i = 0 ; i < numDocuments; i++)
{
aDocument = documents;
theDocumentName = aDocument.name;

newSaveOptions = new EPSSaveOptions();


newSaveOptions.CMYKPostScript = true;
newSaveOptions.EmbedAllFonts = true;
newSaveOptions.EmbedLinkedFiles = false;

newSaveOptions.PostScript = aiLevel2;


newSaveOptions.Compatibility = aiillustrator8;


docPath = aDocument.path;
docPathStr = docPath.toString();

if (docPathStr.length > 1)
{
documentPath = aDocument.path + "/" + aDocument.name;
}
else
{
// This is a brand new file and doesn't have a path yet,
// so put it in the illustrator application folder.
documentPath = path + "/" + aDocument.name;
}

theFile = new File(documentPath);
aDocument.saveAs(theFile, newSaveOptions);
}
///////////////////////////////////////////////////////////////
 
Сверху