You could also take a look at
https://www.wowinterface.com/downloa...ofessions.html which was based on my initial mage portals addon. If memory serves it opens the crafting frame.
Hopefully this old example and Fizzle's more recent page links will help you in some way.