As far as I can tell, crafting and gathering cannot be scripted with the in-game macro system at this time.