Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92756

Catch Exception from Native Application

$
0
0

We are communicating with Premiere Pro via ExtendScript from our panel.  Everything is working for the most part, but we can get into a case where one of the native application calls generates and exception.  We are unable to catch this and the result is a pop us dialog that the user must clear.

 

Here is where we are calling the PPro API, but the try/catch block does not catch the exception:

 

try{

     currentSessionUrl = app.anywhere.getCurrentEditingSessionURL();

}catch(e){

     currentSessionUrl = "";

}

 

Here is the pop up we are getting.  Is there any way to wrap this call so that we can suppress the pop up and handle it gracefully?

Screen Shot 2014-08-06 at 10.57.23 AM.png


Viewing all articles
Browse latest Browse all 92756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>