How to edit Hazelrules in a text editor

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

Moderator: Mr_Noodle

How to edit Hazelrules in a text editor Tue Nov 08, 2011 8:40 am • by Numork
Hi there,

I am trying to setup a whole bunch of rules (around 800). I would like to do this in a text editor, because then I can do that pretty fast. So first of all I set up a rule, so that I have every condition I need. Then I exported it and opened it in TextWrangler. I duplicated the rule in Hazel an exported the new rule again and opened it as well in TextWrangler. I compared the two codes and there were differences! In file 1 the Text I want to edit is in row 77 and in file two the text is in row 81 (Name of the rule).

My question: Is it possible to edit code in TextWrangler and then import it as a ".hazelrules". What do I have to look up for it?

Thanks a lot for your help!
Numork
 
Posts: 7
Joined: Thu Mar 24, 2011 8:42 am

Re: How to edit Hazelrules in a text editor Tue Nov 08, 2011 3:32 pm • by sjk
I'm curious what you're trying to do with 800(!) rules, if you don't mind saying. :)
sjk
 
Posts: 332
Joined: Thu Aug 02, 2007 5:43 pm
Location: Eugene

Re: How to edit Hazelrules in a text editor Tue Nov 08, 2011 4:10 pm • by Mr_Noodle
I do not advise trying to edit the rules files directly. As asked already, I think there may be an issue with your ruleset. Could you provide some examples of the types of rules you are using. I find that in most of these cases, they can be consolidated down greatly through the use of patterns.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How to edit Hazelrules in a text editor Wed Nov 09, 2011 3:56 am • by Numork
@sjk: Yes I know 800 are crazy :) but it works and it works without any breakdown of my system! Great little tool!

@Mr_Noodle: Thanks for your help, I'll send the rules to you through the supportmail
Numork
 
Posts: 7
Joined: Thu Mar 24, 2011 8:42 am

Re: How to edit Hazelrules in a text editor Sun Sep 04, 2016 5:50 am • by htimm1948
This is also for me solution. Maybe I have to little knowledge for using Hazel but I have a directory structure like a database and when I copy the totale structure to a new drive I have to edit all the pathnames.

with kind regards

Harry Timmermans
htimm1948
 
Posts: 2
Joined: Sun Sep 04, 2016 5:45 am


Return to Support