From f5959620c81c651691e8be98fda48a8717c1b0d5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 28 May 2026 03:46:00 +0000 Subject: [PATCH] =?UTF-8?q?diag(premiere-plugin):=20v1.2.3=20=E2=80=94=20f?= =?UTF-8?q?ile-log=20around=20importFiles=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Writes timestamped pre/post lines to C:/Temp/df-import-log.txt around the importFiles call so we can see whether importFiles hangs (only pre line present) or returns and evalScript callback gets lost (both lines present). Diagnostic only. --- services/premiere-plugin/CSXS/manifest.xml | 2 +- services/premiere-plugin/js/main.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/services/premiere-plugin/CSXS/manifest.xml b/services/premiere-plugin/CSXS/manifest.xml index fd415c3..e42bc3a 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 9187aa4..46897d9 100644 --- a/services/premiere-plugin/js/main.js +++ b/services/premiere-plugin/js/main.js @@ -1988,7 +1988,9 @@ function importFileToPremiereProject(filePath) { ' 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) {',