Python – Close all active documents without saving – Photoshop
I need to close all Photoshop documents, be it any number, without saving and without any user prompt. My current code is below for closing the active document only. psApp = win32com.client.Dispatch("Photoshop.Application") psApp.Application.ActiveDocument.Close(2) # close file without saving psApp.Quit() Photoshops…