I have recently seen a cookie that calls for rosemary, it was kind of a delicate butter cookie with a jelly filling. seemed a bit odd to me. coriander is ground fine and used with apple in a stollen recipe.
You would need to either grind the roesmary into a powder or use an oil or something. Having needles in a cookie is not good. Trust me.