Hazel doesn't rename based on "Text content" element

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

Moderator: Mr_Noodle

I created a .txt file with the content "This is a test". Then tried to get Hazel to Rename the file based on the pattern element Text Content (Pattern > Other > Text content). However, this doesn't work. Should it?

Also, in case that this function is actually supposed to work, it would be good to be able to truncate the content to a variable amount of characters, e.g. keep only the first 20 letters.

Image: https://imgur.com/a/JA168
Unfortunately couldn't paste it to the forum because it got too large for some reason.
bonn
 
Posts: 12
Joined: Sun Oct 16, 2016 5:18 am

That is provided by Spotlight though that one is special in that you can search on it but not actually view it. I would heavily advise against using Text Content in that fashion, though, as it can potentially a large amount of text into your filenames.

It might be better to use "Contents contain match" and create a custom attribute to match a portion of the contents. You can then use that to rename the file.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support