How to sync tags with filenames?

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

Moderator: Mr_Noodle

How to sync tags with filenames? Sat Jun 15, 2019 10:19 pm • by panyuz
for example,

file1.png

if i add a tag1 to it,the filename auto rename to [tag1]file1.png;
if i add a tag2 to it, the filename rename to [tag2][tag1]file1.png;

if i remove the tag1 ,then the filename auto rename to [tag2]file1.png.
if i remove all tags, the filename change to file1.png
panyuz
 
Posts: 2
Joined: Sat Jun 15, 2019 10:14 pm

Re: How to sync tags with filenames? Mon Jun 17, 2019 10:24 am • by Mr_Noodle
How do you determine the order? Also, are the square brackets actually around each tag or did you just put those in for illustrative purposes?
Mr_Noodle
Site Admin
 
Posts: 8697
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How to sync tags with filenames? Mon Jun 17, 2019 9:15 pm • by panyuz
Mr_Noodle wrote:How do you determine the order? Also, are the square brackets actually around each tag or did you just put those in for illustrative purposes?


i do not know how to determine the order. the square brackets are parts of filename, not for illustrative
panyuz
 
Posts: 2
Joined: Sat Jun 15, 2019 10:14 pm

Re: How to sync tags with filenames? Tue Jun 18, 2019 10:18 am • by Mr_Noodle
It may not be doable without a script. While you can prepend Tags to the name using the Rename action, you can't really put square brackets around each one.

You'd also need to isolate the name from the tags part in the condition so that you don't keep prepending tags every time they change. Probably a custom attribute which grabs everything after the last "]".
Mr_Noodle
Site Admin
 
Posts: 8697
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support