From 8b48f03f6b7f44f068e90bb60dca7dbf75ab4a56 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 28 May 2026 03:59:40 +0000 Subject: [PATCH] =?UTF-8?q?diag(premiere-plugin):=20v1.2.5=20=E2=80=94=20n?= =?UTF-8?q?o-op=20IIFE=20writes=20to=20Documents/=20+=20reports=20lf.open?= =?UTF-8?q?=20result?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/premiere-plugin/CSXS/manifest.xml | 2 +- services/premiere-plugin/js/main.js | 23 ++++++---------------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/services/premiere-plugin/CSXS/manifest.xml b/services/premiere-plugin/CSXS/manifest.xml index 50272da..76e7ea9 100644 --- a/services/premiere-plugin/CSXS/manifest.xml +++ b/services/premiere-plugin/CSXS/manifest.xml @@ -2,7 +2,7 @@ diff --git a/services/premiere-plugin/js/main.js b/services/premiere-plugin/js/main.js index bc603be..0d1a22f 100644 --- a/services/premiere-plugin/js/main.js +++ b/services/premiere-plugin/js/main.js @@ -1979,23 +1979,12 @@ function importFileToPremiereProject(filePath) { '(function() {', ' var result = { success: false, message: "" };', ' try {', - ' if (!app.project) {', - ' result.message = "No active Premiere Pro project";', - ' return JSON.stringify(result);', - ' }', - ' var f = new File("' + safePath + '");', - ' if (!f.exists) {', - ' result.message = "File not found: ' + safePath + '";', - ' return JSON.stringify(result);', - ' }', - ' try { var __l = new File("C:/Temp/df-import-log.txt"); __l.open("a"); __l.writeln((new Date()).toString() + " pre-importFiles ' + safePath + '"); __l.close(); } catch(_e){}', - ' app.project.importFiles(["' + safePath + '"], true);', - ' try { var __l2 = new File("C:/Temp/df-import-log.txt"); __l2.open("a"); __l2.writeln((new Date()).toString() + " post-importFiles RETURNED"); __l2.close(); } catch(_e){}', - ' result.success = true;', - ' result.message = "Imported successfully";', - ' } catch (e) {', - ' result.message = e.message;', - ' }', + ' var lf = new File("C:/Users/Administrator/Documents/df-import-log.txt");', + ' var opened = lf.open("a");', + ' result.message = "opened=" + opened + " fsName=" + lf.fsName + " err=" + (lf.error || "none");', + ' if (opened) { lf.writeln((new Date()).toString() + " v1.2.5 noop probe"); lf.close(); }', + ' /* keep success=false so the message surfaces in the panel popup */', + ' } catch (e) { result.message = "caught: " + e.message; }', ' return JSON.stringify(result);', '})();', ].join('\n');