Exemplo n.º 1
0
        public static void RunAction(string orig, string target, string actionFileName, string action, string group)
        {
            ApplicationClass app = new ApplicationClass();

            app.DisplayDialogs = PsDialogModes.psDisplayNoDialogs;

            //app.Load(actionFileName);
            var doc = app.Open(orig);

            app.DoAction(action, group);
            var options = new JPEGSaveOptions();

            options.Quality = 9;

            doc.SaveAs(target, options, true, PsExtensionType.psLowercase);
            doc.Close(PsSaveOptions.psDoNotSaveChanges);
            //doc.Close(PsSaveOptions.psSaveChanges);
        }