• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Premiere Pro Scripting Error Handling

Engaged ,
Oct 14, 2018 Oct 14, 2018

Copy link to clipboard

Copied

Premiere Pro scripting is still relatively new to me, so I don't quite understand that much about it.  Let's just say I want a simple .jsx script that, when run, it imports several different .jpg images in a directory, and if any of those .jpg images fail to be imported correctly (perhaps they are corrupted, or Premiere cannot read the special format they might be in for example), then it throws an error, which the code should then catch and take an appropriate error action.

How might something like this be achieved with Premiere Pro .jsx extendscript scripting?  In pseudocode, it would look something like this:

For each file in directory:

     Try:

          Import file into project

     Catch(import failure error)

          Alert("file failed to import!")

Can something like this be done with Premiere Pro scripting?  If so, can you please provide example code that would achieve this?  Thank you.

Views

183

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
community guidelines
no replies

Have something to add?

Join the conversation