Created
September 16, 2014 11:04
-
-
Save getflourish/d1cb94643793fd044449 to your computer and use it in GitHub Desktop.
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 com = com || {}; | |
com.getflourish = (function() { | |
var my = {}; | |
my.execute = function(block) { | |
try | |
{ | |
block(); | |
} | |
catch (e) | |
{ | |
my.log(e); | |
} | |
} | |
return my; | |
}()); | |
function loop () { | |
var style = null; | |
var count = doc.currentPage().children().count(); | |
try { | |
for (var i = 0; i < count; i++) { | |
try { | |
style = doc.currentPage().children().objectAtIndex(i).style(); | |
} catch (error) {} | |
} | |
style = null; | |
} catch (error) { | |
} | |
} | |
com.getflourish.execute(loop); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment