Hi, I actually have an specific jsx that only works with an specific .aep. So when i run the script without the .aep open, the ExtendScript Toolkit send me to that window, and i want to ignore all errors or skip one error line and send an alert inside after effects. How can i do that? inside my .jsx.
My First Panel GUI Structure is the classic one that "David Torno" share online:
(I will not share all the code because is too much code lines)
{
function myScript(thisObj){
function myScript_buildUI(thisObj){
var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette","Panel Estudio Voraz",[10, 10, 300, 300],undefined,undefined,{resizable:true},{borderless:true});
myPanel.layout.resize();
res = "group{orientation:'column',margins: 0,spacing: 0,\
myTabbedPanel: Panel{type:'tabbedpanel',\
myTab1: Panel{type:'tab', text:'OpenTag',\
topImgGrp: Panel{type:'panel',text:'',\
myIconButton: IconButton{text:'IconButton',},\
},\
}";
BLABLABLA TOO MUCH CODE
myPanel.grp = myPanel.add(res);
myPanel.grp.spacing= 0
myPanel.minimumSize.width = 400
return myPanel;
}
var myScriptPal = myScript_buildUI(thisObj);
if((myScriptPal != null) && (myScriptPal instanceof Window)){
myScriptPal.center();
myScriptPal.show();
}
}
myScript(this);
}