I am using a slightly modified version of this script to export icons.
http://www.ericson.net/content/2011/06/export-illustrator-layers-andor-artboards-as-pngs-a nd-pdfs/
Say I have a document with three artboards named @1x, @2x, @3x, I am using the script to export each layer * each artboard to create my different size icons. Now the problem is that not every layer has artwork on every artboard. Is there a way to ignore empty artboards per layer? or At least how can I tell if an artboard is blank when a specific layer is selected?