I tried app.activeDocument.selection[0].exportFile(ExportFormat.PNG,File("~/Desktop/temp/1.png"),false);
but it says exportFile is not a function in ExtendedScript.
I tried app.activeDocument.selection[0].exportFile(ExportFormat.PNG,File("~/Desktop/temp/1.png"),false);
but it says exportFile is not a function in ExtendedScript.