close the dialog after File.openDialog
Using the function below with Indeisgn CS6, the window is automatically closed after the xml file is selected
With the CC 2018 version, the window remains open during the script process. Have you an idea so this window will be closed immediately ?
THanks for your help
function ImporterXml(){
myXmlFile = File.openDialog("Sélectionner le fichier XML", "Fichiers xml :*.xml");
resultat = false;
if (myXmlFile != null){
_myXmlName = myXmlFile.displayName; // que le nom
_myXmlFileName = myXmlFile.fsName; // chemin + nom
doc.xmlElements.item(0).importXML(myXmlFile);
fichierXML = _myXmlFileName;
resultat = true;
}
return resultat;
}