Having trouble with Rename

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Having trouble with Rename Wed Dec 13, 2023 10:51 pm • by mforce
I have a rule and once it is matched, I copy a file to two new locations and then rename it with date and time as part of the file name.

Here is the actions taken:
Copy to folder (specified folder 1)
Rename with pattern: [name]--date modified][extension]
Copy to folder (specified folder 2)
Rename with pattern: [name]--[date modified][extension]

[date modified] contains this date and time pattern: 1999_12_31--01.30.59

The file gets copied to folder 1 and is renamed exactly as expected.
filename--2023_12_13--09.26.52.numbers
The file gets copied to folder 2 but is renamed incorrectly.
filename--2023_12_13--09.26.52--2023_12_13--09.26.52.numbers

The date pattern is repeated twice on the second rename.
Any assistance or ideas would be greatly appreciated.
mforce
 
Posts: 5
Joined: Sat Sep 05, 2020 11:02 pm

Re: Having trouble with Rename Thu Dec 14, 2023 9:56 am • by Mr_Noodle
When doing a copy, any subsequent actions apply to the copy, not the original. So, you can either omit one rename action or split it into two rules, using a Continue action in the first one.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Having trouble with Rename Sun Dec 17, 2023 9:41 pm • by mforce
Mr_Noodle wrote:When doing a copy, any subsequent actions apply to the copy, not the original. So, you can either omit one rename action or split it into two rules, using a Continue action in the first one.


Thanks for you assistance. With your advice, I cam up with a different method to accomplish this task.
mforce
 
Posts: 5
Joined: Sat Sep 05, 2020 11:02 pm


Return to Open Discussion