Append Text from a File to the filename

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

Moderator: Mr_Noodle

Append Text from a File to the filename Sat Jun 19, 2021 6:32 pm • by united
I was trying to do the following:

Wanted to do this.

File1 (text file)
Dog

Value1 = Dog

I wanted hazel to read the file and use that value in the rename option of hazel to use it.

result:
whatever conditions matched

Do the following: to files that match this
Rename with pattern <Name> <Value1>.<ext>

Is that possible?

Any help would be appreciated.
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

Re: Append Text from a File to the filename Mon Jun 21, 2021 11:14 am • by Mr_Noodle
Look up "match patterns" in the help. Using those, you can set up a custom attribute to do what you want.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Append Text from a File to the filename Wed Jun 23, 2021 11:30 am • by united
Mr_Noodle wrote:Look up "match patterns" in the help. Using those, you can set up a custom attribute to do what you want.


https://www.noodlesoft.com/manual/hazel ... conditions

looking at that page I don't have the following patterns in the UI

Custom list item
Custom Table

Is that only in hazel 5?
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

Re: Append Text from a File to the filename Thu Jun 24, 2021 9:37 am • by Mr_Noodle
Yes, those are new features in version 5.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support