// Fireworks JavaScript Command // Links all selected masks // Install by copying to Fireworks/Configuration/Commands/ // Run in Fireworks via the Commands menu // Aaron Beall - http://abeall.com var dom = fw.getDocumentDOM(); var sel = [].concat(fw.selection); function LinkSelectedMasks(){ for(var s in sel){ if(sel[s].mask){ sel[s].mask.linked = true; } } } LinkSelectedMasks();