From d6760cd639b4d0aa8336f6e251770d5bd72066ba Mon Sep 17 00:00:00 2001 From: Tee Date: Wed, 22 Nov 2023 09:34:01 +0100 Subject: [PATCH] fix audition --- src/host/AUDT.jsx | 6 ++---- src/rpc_client-src/index.js | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/host/AUDT.jsx b/src/host/AUDT.jsx index 3d55685..957d3a2 100644 --- a/src/host/AUDT.jsx +++ b/src/host/AUDT.jsx @@ -27,8 +27,8 @@ function details(){ try{ - if(app.activeDocument && app.activeDocument.reflect.name){ - return app.activeDocument.reflect.name; + if(app.activeDocument && app.activeDocument.displayName){ + return app.activeDocument.displayName; }else{ return "No file."; } @@ -36,8 +36,6 @@ function details(){ }catch(e){ return ""; } - - return app.activeDocument.reflect.name; } diff --git a/src/rpc_client-src/index.js b/src/rpc_client-src/index.js index 12ac8fe..b1361e4 100644 --- a/src/rpc_client-src/index.js +++ b/src/rpc_client-src/index.js @@ -55,6 +55,7 @@ if (csInterface.getApplicationID() === "AEFT") { return; }); if (isDynamicLink) + // TODO: handle dunamic link throw new Error("Started as dynamic link"); }