Rename file by subfolder

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Rename file by subfolder Tue Mar 13, 2012 6:57 pm • by alexbolduc
Hello everyone, i'm trying to rename a file by a folder name but i can't figure it out...

There the exemple of path and where i want to put the file after

Travel/New-York_2010/001.jpg and i want that the result will be Travel/New-York_2010 - 001.jpg

I will drag folder directly in the Travel folder...

Travel folder will always stay the same but the subfolder New-York_2010 may vary.

Thanks a lot if you have a clue.
alexbolduc
 
Posts: 8
Joined: Tue Mar 13, 2012 6:51 pm

Re: Rename file by subfolder Tue Mar 13, 2012 7:00 pm • by alexbolduc
The Travel folder can be
Travel Temp as input and Travel Final as result if it can't be managed in the same folder...
alexbolduc
 
Posts: 8
Joined: Tue Mar 13, 2012 6:51 pm

Re: Rename file by subfolder Wed Mar 14, 2012 12:53 pm • by Mr_Noodle
The only way I can think of doing it now is setting up a custom token (search for it in the help) to match against the enclosing folder's name. Something like:
Code: Select all
  If all true for enclosing folder
      Name matches (• parent name)


where "parent name" is a custom token matching anything. You can then use the parent name token in your renaming pattern.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rename file by subfolder Fri Mar 16, 2012 10:53 pm • by alexbolduc
Don't seems to work or i don't make it correctly...

I want to apply the rule in the folder main folder "Travel" and rename the files in the subfolder "New_York_2012" by the name "New_York_2012 - 001.jpg", "New_York_2012 - 002.jpg", etc. and move it in the folder Travel when all rename done. If possible to delete after the folder "New_York_2012" after all files moved to the main folder but not necessary...
alexbolduc
 
Posts: 8
Joined: Tue Mar 13, 2012 6:51 pm

Re: Rename file by subfolder Mon Mar 19, 2012 12:32 pm • by Mr_Noodle
Why don't you email support and send me the rules as you have it now and I'll see what's going on there.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support