File re-name incrementally

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

Moderator: Mr_Noodle

Re: File re-name incrementally Mon Jun 20, 2022 9:05 am • by Mr_Noodle
Anything in the custom attribute's pattern will become part of that attribute. If you have "anything" in that pattern, then anything it matches will be included in the custom attribute. You want that last "anything" to be outside the custom attribute's pattern, and in the main pattern instead.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Mon Jun 20, 2022 2:35 pm • by MeanKidneyDan
Mr_Noodle wrote:Anything in the custom attribute's pattern will become part of that attribute. If you have "anything" in that pattern, then anything it matches will be included in the custom attribute. You want that last "anything" to be outside the custom attribute's pattern, and in the main pattern instead.


I'm sorry. You've totally lost me.
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Tue Jun 21, 2022 8:54 am • by Mr_Noodle
Think of it like this. You have a big bucket full of different colored marbles (this is the full pattern). You put in a cup for the marbles you care about (this is your custom attribute). You want to fill it with, say, all the marbles except the yellow ones.

What you are doing now is putting in all the marbles including the yellows. You want the yellow ones outside the cup, but still inside the bucket.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Tue Jun 21, 2022 9:24 am • by MeanKidneyDan
Mr_Noodle wrote:Think of it like this. You have a big bucket full of different colored marbles (this is the full pattern). You put in a cup for the marbles you care about (this is your custom attribute). You want to fill it with, say, all the marbles except the yellow ones.

What you are doing now is putting in all the marbles including the yellows. You want the yellow ones outside the cup, but still inside the bucket.


Yeah I understand the analogy. I just can't get it to DO it. NOW it replaces the whole name with _Mv, keeps the original number and tacks another, seemingly random, one on.
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Wed Jun 22, 2022 8:54 am • by Mr_Noodle
You want your full pattern to be (• my custom attribute)(anything). You want the pattern for (• my custom attribute) to be (anything)(_Mv). You have to be careful to keep that second (anything) outside the custom attribute's pattern. When you rename, you do not use (name). You want to use (• my custom attribute) plus the counter attribute.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Mon Jun 27, 2022 4:52 pm • by MeanKidneyDan
Mr_Noodle wrote:You want your full pattern to be (• my custom attribute)(anything). You want the pattern for (• my custom attribute) to be (anything)(_Mv). You have to be careful to keep that second (anything) outside the custom attribute's pattern. When you rename, you do not use (name). You want to use (• my custom attribute) plus the counter attribute.


Ok I think I followed your instructions, but now it only renames every file with the correct file name but only ever _Mv2. no matter what number it was before 1 becomes 2 [yay!] 2 becomes...2. 6 becomes...2.

here's my current recipe.
1. https://www.dropbox.com/s/ns9mspjrawki9au/Screen%20Shot%202022-06-27%20at%204.34.30%20PM.png?dl=0
2. https://www.dropbox.com/s/tc0zvywdyhxybqd/Screen%20Shot%202022-06-27%20at%204.34.20%20PM.png?dl=0
3. https://www.dropbox.com/s/2xyqy5c7w7ugrbv/Screen%20Shot%202022-06-27%20at%204.34.53%20PM.png?dl=0
4. https://www.dropbox.com/s/drben5gc5mgwera/Screen%20Shot%202022-06-27%20at%204.34.46%20PM.png?dl=0
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Tue Jun 28, 2022 8:45 am • by Mr_Noodle
The issue here is that you have it set to "Use lowest available". There is a limitation now where the files have to be named identically except the counter. For example, if you have file A1, A2, and A4, Hazel will use A3. But if you have A1, A2, B1, and the new file is "B", then it will use B2 since that is the first one available in that sequence.

If you want it to be strictly increasing, you need to use "Always increment".
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Tue Jun 28, 2022 9:14 am • by MeanKidneyDan
Mr_Noodle wrote:The issue here is that you have it set to "Use lowest available". There is a limitation now where the files have to be named identically except the counter. For example, if you have file A1, A2, and A4, Hazel will use A3. But if you have A1, A2, B1, and the new file is "B", then it will use B2 since that is the first one available in that sequence.

If you want it to be strictly increasing, you need to use "Always increment".


If I use that, it doesn't replace the number, it tacks on a new, random number, not an increment from the previous number.
Here's a screen recording of it doing that: https://www.dropbox.com/s/95l08max9csx5dg/Screen%20Recording%202022-06-28%20at%209.14.35%20AM.mov?dl=0
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Wed Jun 29, 2022 8:56 am • by Mr_Noodle
Are you sure the counter isn't up to 18?
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Wed Jun 29, 2022 9:27 am • by MeanKidneyDan
Mr_Noodle wrote:Are you sure the counter isn't up to 18?


So unless I'm reading your help stuff wrong, if every folder has its own counter, there is no way to change any file with any "Mv" number to increase by its original number plus one if the FOLDER is the thing that keeps the counter number.

If I put an "_Mv3" file and an "Mv9" file in my folder, are you saying that I won't get an "_Mv4" and an "_Mv10" file? That I'll get an _Mv18 and an _Mv19, depending on which goes first?
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Thu Jun 30, 2022 8:53 am • by Mr_Noodle
If you want the original number + 1, that is different than having a counter. So you are saying if you get mv52, you want it renamed to mv53?
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Thu Jun 30, 2022 10:47 am • by MeanKidneyDan
Mr_Noodle wrote:If you want the original number + 1, that is different than having a counter. So you are saying if you get mv52, you want it renamed to mv53?


Yes. Exactly right. whatever number it starts with, just increase that number by one no matter the number.

Mv1 becomes Mv2, Mv10 becomes Mv11, Mv86 becomes Mv87, etc.
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Fri Jul 01, 2022 8:40 am • by Mr_Noodle
In that case, you don't want to use the counter at all. Replace the "..." at the end with another custom text attribute to match the number. Then in the Rename pattern, you can use the adjustment there.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: File re-name incrementally Fri Jul 01, 2022 10:03 am • by MeanKidneyDan
Mr_Noodle wrote:In that case, you don't want to use the counter at all. Replace the "..." at the end with another custom text attribute to match the number. Then in the Rename pattern, you can use the adjustment there.


I don't know what you mean "use the adjustment from there". the counter is IN the rename pattern.
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Re: File re-name incrementally Fri Jul 01, 2022 10:27 am • by MeanKidneyDan
Mr_Noodle wrote:In that case, you don't want to use the counter at all. Replace the "..." at the end with another custom text attribute to match the number. Then in the Rename pattern, you can use the adjustment there.



OK I got it. I think it works. Thanks for all your help!
MeanKidneyDan
 
Posts: 17
Joined: Tue Jun 07, 2022 7:16 am
Location: Massachusetts, United States

Previous

Return to Support