Highlighted

First try/catch fails

Participant ,
Aug 11, 2020

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?

Topics

Error or problem, Scripting

Views

34

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

First try/catch fails

Participant ,
Aug 11, 2020

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?

Topics

Error or problem, Scripting

Views

35

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation