Skip to main content
Participating Frequently
April 1, 2022
Answered

Renommage grosse quantité

  • April 1, 2022
  • 2 replies
  • 1980 views

Bonjour, je travail avec un grand nombre d'image a renommer au quotidien et je souhaiterais les renommer facilement mais j'ai un soucis avec les séquences dans le workflow.

J'ai plusieurs dossier avec des fichiers qui ont besoin d'avoir le nom de dossier et un numéro de séquence a deux chiffres sauf que quand je lance le workflow avec plusieurs dossier les numéros de séquence ne reprennent pas a zero a chaque dossier et continuent, il y aurait-il un moyen de regler ce probleme?

Merci d'avance 🙂

This topic has been closed for replies.
Correct answer Kukurykus

Hi, thank you so much for your time and your effort and hard work, i really appreciate your help 

but i still have problems 😕😕

like in the screenshot i have a bunch of files in a bunch of different folder, it can be 2 folder some days or maybe 200 it depends of the work charge we have, when there is 2 its ok i have a semi automatic way of renaming the files but 200 takes a long time to do. ( I can rename the files in a folder automatically with a command with my wacom tablet but i still have to select the folders manually )

Your script works but only for one folder and it start the first file with "-02"  

Do you have a way i could do this automatically for all the files in all the folders that are in "01_EN COURS" ?

The folder are already rename, i just need the files to have the folder's name with a sequence startint from "-01" and reseting between folders

 


 

rnmng = new MenuElement('command', 'Renaming of Files',
'at the end of Thumbnail'), rnmng.onSelect = function() {
	
	fnctn = function(v){return v instanceof Folder}
	fldrs = app.document.thumbnail.spec.getFiles(fnctn)

	while(fldrs.length) {
		lngth = (fls = (fldr = fldrs.shift())
		.getFiles('*.tif')).length; while(fls.length)
			fls.shift().rename(fldr.name + '-' + ('0'
			+ (lngth - fls.length)).slice(-2) + '.tif')
	}
}

 

2 replies

Kukurykus
Legend
April 1, 2022

It seems like in those folders you're getting bunch of new images next to already renamed?

Participating Frequently
April 1, 2022

So, i'll explain everything : (i'm sorry in advance my english is not really good)

I scan a lot of images everyday, i have a folder with names like : 8451, 8452, etc..

And i need the images in thoses folder to be named 8451-01 so i tried the workflow thing (rename with name of the folder, text "-", and a sequencial number starting at 1 with two digit) by selecting all the images from all the folders at once but the numbers never stop from a folder to an other. (It goes like : 8451-36 > 8452-37)

Thats where i am.

I saw your replies on the other post but its a little to technical for me, i dont really know how to use that in my case

Thank you in advance

Participating Frequently
April 5, 2022

 

rnmng = new MenuElement('command', 'Renaming of Files',
'at the end of Thumbnail'), rnmng.onSelect = function() {
	
	fnctn = function(v){return v instanceof Folder}
	fldrs = app.document.thumbnail.spec.getFiles(fnctn)

	while(fldrs.length) {
		lngth = (fls = (fldr = fldrs.shift())
		.getFiles('*.tif')).length; while(fls.length)
			fls.shift().rename(fldr.name + '-' + ('0'
			+ (lngth - fls.length)).slice(-2) + '.tif')
	}
}

 


THANK YOU SO MUCH, i've been scrugling with this for so much time.

its beautiful, you're the best 

you made me gain so much time.

❤️

Stephen Marsh
Community Expert
Community Expert
April 1, 2022

@Arka Laboratoire 

 

The script from @Kukurykus in the following topic would be a good place to start, however, it may need adapting and the forum may need to understand your folder and filename structure.

 

https://community.adobe.com/t5/bridge-discussions/rename-multiple-files/td-p/12786213

 

Good luck!

Participating Frequently
April 1, 2022

Thank you very much i will check and try to adapt it to my work