Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

File Name editing if condition applies

$
0
0

Hello,

 

Is that possible to read the file name and rename if the condition applies.

 

Example:

We receive files with the name as shown below, I need the last 4 digit need to be removed and save the file as .psd formate.

Some time we receive files with last 4 digit and some time it won't.

 

Source files:

4100520_A_799_0626.tif

4100520_B_650_0626.psd

4100520_B_400.tif

41009782_B_039_0626.jpg

 

Final Required file names as:

4100520_A_799.psd

4100520_B_650.psd

4100520_B_400.psd

41009782_B_039.psd


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>