This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentArtboard = [[[doc currentPage] artboards] firstObject]; | |
var layers = selection; | |
var bounds = getBoundsForLayers(layers); | |
for (var i = 0, len = [layers count]; i < len; ++i) { | |
var layer = [layers objectAtIndex:i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.top != window.self) { | |
window.top.location = window.self.location; | |
} |