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

Automation Blocks increment version and save

Community Expert ,
Feb 08, 2025 Feb 08, 2025

Today I got a question from @MyerPj how to implement a versioning system for Premiere Pro with my (paid) extension Automation Blocks for Pr.

If anybody is looking for the same, here is a starting point. This script saves the currently active project with a new version number. I.e. if the current project is "test_V1.prproj" then it is saved as "test_V2.prproj".
Screenshot 2025-02-08 at 11.16.40.pngexpand image
The logic to modify the file name has been implemented in an Execute Code block with code generated by ChatGPT.
Here is the exact prompt I used in ChatGPT to create the code:

Please write a Adobe ExtendScript function "getNextVersionFilename" which takes as arguments "fileName" and returns a new file name for the next version. If fileName is "myProject_V1.prproj" then it should return "myProject_V2.prproj", for example. Always increment the version number at the end by one. Or add a new version number 1 if there is no version number, yet.

Block script is attached.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
TOPICS
SDK
161
Translate
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
Community Expert ,
Feb 08, 2025 Feb 08, 2025

I also added the script to the Community Library now at

Project Management/Save and Close/Increment Version And Save.xml

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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
Community Expert ,
Feb 08, 2025 Feb 08, 2025
LATEST

Awesome! 🙂

 

I can't wait to try it out, and figure out what is happening in Automation Blocks and the code. 

Your quick and tremendous support here on the forums convinced my your software / add-on is a must have.

 

Thank you so much!

MyerPj

Translate
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