Copy link to clipboard
Copied
Hey guys,
There's a consistent error I've been running into when using try/catch in Extendscript. Upon opening After Effects, the first time I run a script with a try/catch in it with "enable javascript debugger" turned on, if there's an error in the "try" block, it won't catch the error by running the "catch" block. If I stop the script and run it again without changing anything, the try/catch then works properly.
I can mostly work around this by just running scripts twice the first time I boot up AE. But it IS a nuisance. Any ideas why this happens?
Copy link to clipboard
Copied
Hey guys,
There's a consistent error I've been running into when using try/catch in Extendscript. Upon opening After Effects, the first time I run a script with a try/catch in it with "enable javascript debugger" turned on, if there's an error in the "try" block, it won't catch the error by running the "catch" block. If I stop the script and run it again without changing anything, the try/catch then works properly.
I can mostly work around this by just running scripts twice the first time I boot up AE. But it IS a nuisance. Any ideas why this happens?
Have something to add?