Need to suppress the save popup
We want to save a Sketch which is not saved in the disk locally (Eg. Let say currently the sketch name is Untitled-1) through Adobe api. We are using the following adobe illustrator api to save the sketch internally.
error = sAIDocument->WriteDocument(fullFilePath, kAINativeFileFormat, false)
But after calling the api the untitled sketch would be stored into a particular location. After the save operation we want to close the untitled sketch automatically(Right now in Adobe, Untitled Sketch and saved sketch kept as opened). We call the following api to close the untitled sketch(currently kept as opened). But after calling the api, we got a popup that “Save changes to Adobe Illustrator document “Untitled-1” with the button Yes, No and Cancel. Actually we don’t want to display the popup. How can we achieve?
AIDocumentHandle handle = NULL;
sAIDocument->GetDocument(&handle);
sAIDocumentList->Close(handle);
Regards,
Avudai
