Save Incremental

This is a simple script I wrote as a test of basic regular expressions four years ago and completely forgot about.

This script does one thing, it checks to see if an image has been saved with the filename format of “Name_#” Where “#” is any numerical value. So “MyImage_1” and “MyImage_2” etc. If it finds this pattern, it attempts to auto-increment that ending value. If it does not find this, then it adds “_1” to the filename and lets you choose the Save settings. This will not auto-increment numbers found in the middle of a filename, only at the end of the filename. Many people will hate the fact that the “SaveAs” dialog always pops up but I currently have no way of knowing what file save values to use for the image so it seemed like the most sensible option at the time.

This script has not been tested extensively, so I don’t know if there are any combinations that will trip it up. Luckily it’s fully interactive at Save so you don’t have to worry about it saving to a format you don’t want, or saving over another file. The script attempts to avoid using a filename that already exists so that shouldn’t be a problem anyway.

Script Download: https://drive.google.com/file/d/0B8FlFL … sp=sharing
Supported Versions:  X4 – 2022 – I suspect it can be used with earlier versions but I have not tried
Requirements: Must be saved to Scripts-Trusted folder – Uses os and re python libraries

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑