Skip to main content
Mathias Moehl
Community Expert
Community Expert
February 8, 2025
Question

Automation Blocks increment version and save

  • February 8, 2025
  • 2 replies
  • 420 views

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".

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.

2 replies

MyerPj
Community Expert
Community Expert
February 8, 2025

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

Mathias Moehl
Community Expert
Community Expert
February 8, 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