Save Incremental

Moderator: Kathy_9

Post Reply
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Save Incremental

Post by LeviFiction »

Script Download: https://drive.google.com/file/d/0B8FlFL ... sp=sharing
Supported Versions, X4 - X8 - 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

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.
https://levifiction.wordpress.com/
Post Reply