7 Replies Latest reply on Jan 13, 2016 2:26 AM by Pralhad Patil

    Not able to open .ait file from code

    Pralhad Patil Level 1

      Hello All,


      I'm trying to open a template file in illustrator but getting this error while opening the file.

      2016-01-13 14_05_48-Illustrator.png

      and my code is as follows,


      AIActionParamValueRef fActionParamValueRef = NULL;

        ASErr result = sAIActionManager->AIActionSetStringUS(fActionParamValueRef, kAIOpenDocumentNameKey,filePath);

        sAIActionManager->PlayActionEvent(kAIOpenDocumentAction, kDialogOff, fActionParamValueRef);


      am I missing anything? Please suggest.