People constantly look for ways to improve the glyph making process. One question that people bring up a lot is auto milling (or auto prospecting). There are technical ways to do this but they exist outside of wow and at face value they break the ToS. These other methods are a use at your own risk. It is a very gray line where usage of these ticks will and will not get an account banned.
I also want to mention that I am not a lawyer and this is my interpretation of the ToS and other information I have found. These are my opinions on the topic and you should form your own opinion.
The Jedi Magic that I am talking about are the ways you get around Blizzards built in limits on macros and actions to get wow to do more with less effort. Auto milling is that example. Many people look for ways to automate the milling process. Some external scripting/macro programs will simulate key presses, some hardware is programmable and will allow automated key presses, some hardware support turbo options to repeat a single key over and over while it is held down. These are all tools and some are very common.
As tools they do not break the ToS, but you can break the ToS with them. Just like carrying a hammer does not break the law, but swinging it at someone does. AHK is used by multiboxers, G15 sits on the desk of many gamers, many control pads have turbo button options, and every computer has vbscript installed. There are ways all of these can be safely used and ways they can all get your account banned. This is why this subject becomes very grey.
The closer to that line you go, the higher your risk is. Because the devil is in the details and the line is not so clear cut. You don't know if the guy checking on your activity understands these details. Just because you think your within the ToS the other guy may not agree.
Here is a good rule of thumb. If your are sending actions to your character and you are not at the keyboard then you have broken the ToS. If you have something making game decisions for you then you have broken the ToS. This is why AHK is allowed for multiboxing. Each keystroke is done by the user at the keyboard and AHK sends it to the other windows. If that same user put timed actions into AHK (like self buffing every 30 min) then he is breaking the ToS. If he sets it to press his mill macro every 3 sec for 15 min and he walks away from the computer, he broke the ToS.
It is hard to tell if they will ban you for auto milling/prospecting. If you auto mill but stop to chat with the GM when he pops up, I would guess you could save your account. This is why its a use at your own risk. If you are looking for help on how to do this automation, please look someplace else. I will remove comments asking about or giving too much information on how to do this.