Creating a new document using ActionManagerSuite's PlayActionEvent results in the document becoming unreachable.
- Occurs in Illustrator 2025 29.8.1 and later.
- Condition: Using a design that uses a spot color with a spot color name.
- Using ActionManagerSuite's PlayActionEvent.
I opened a design that uses the spot color in the condition, and created a new document using PlayActionEvent with adobe_newDocument.
After creating the document, if I execute AIDocumentListSuite's Activate function on the AIDocumentHandle obtained by AIDocumentListSuite's GetNthDocument, I get the error message "Please open the file and execute."
Exception(sAIActionManager->AINewActionParamValue(&pdfParamBlock));
Exception(sAIActionManager->AIActionSetStringUS(pdfParamBlock, 'name', CNVSTR(docNameTmp)));
Exception(sAIActionManager->AIActionSetReal(pdfParamBlock, 'colr', kDocCMYKColor));
Exception(sAIActionManager->AIActionSetReal(pdfParamBlock, 'wdth', fabs(bounds.right - bounds.left)));
Exception(sAIActionManager->AIActionSetReal(pdfParamBlock, 'heit', fabs(bounds.bottom - bounds.top)));
Exception(sAIActionManager->PlayActionEvent("adobenewDocument", kDialogOff, pdfParamBlock));
Exception(sAIActionManager->AIDeleteActionParamValue(pdfParamBlock));
Exception(sAIDocumentList->Count(&docCount));
for (int i = 0; i < docCount; i++)
{
Exception(sAIDocumentList->GetNthDocument(&docTmp, i));
Exception(sAIDocumentList->Activate(docTmp, true)); //<- Error
.......
}