diag(premiere-plugin): v1.2.5 — no-op IIFE writes to Documents/ + reports lf.open result
This commit is contained in:
parent
9085835074
commit
8b48f03f6b
2 changed files with 7 additions and 18 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<ExtensionManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<ExtensionManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
ExtensionBundleId="net.wilddragon.dragonflight.panel"
|
ExtensionBundleId="net.wilddragon.dragonflight.panel"
|
||||||
ExtensionBundleName="Wild Dragon MAM"
|
ExtensionBundleName="Wild Dragon MAM"
|
||||||
ExtensionBundleVersion="1.2.4"
|
ExtensionBundleVersion="1.2.5"
|
||||||
Version="7.0">
|
Version="7.0">
|
||||||
<ExtensionList>
|
<ExtensionList>
|
||||||
<Extension Id="net.wilddragon.dragonflight.panel" Version="1.0" />
|
<Extension Id="net.wilddragon.dragonflight.panel" Version="1.0" />
|
||||||
|
|
|
||||||
|
|
@ -1979,23 +1979,12 @@ function importFileToPremiereProject(filePath) {
|
||||||
'(function() {',
|
'(function() {',
|
||||||
' var result = { success: false, message: "" };',
|
' var result = { success: false, message: "" };',
|
||||||
' try {',
|
' try {',
|
||||||
' if (!app.project) {',
|
' var lf = new File("C:/Users/Administrator/Documents/df-import-log.txt");',
|
||||||
' result.message = "No active Premiere Pro project";',
|
' var opened = lf.open("a");',
|
||||||
' return JSON.stringify(result);',
|
' 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(); }',
|
||||||
' var f = new File("' + safePath + '");',
|
' /* keep success=false so the message surfaces in the panel popup */',
|
||||||
' if (!f.exists) {',
|
' } catch (e) { result.message = "caught: " + e.message; }',
|
||||||
' 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;',
|
|
||||||
' }',
|
|
||||||
' return JSON.stringify(result);',
|
' return JSON.stringify(result);',
|
||||||
'})();',
|
'})();',
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue