Skip to content

Instantly share code, notes, and snippets.

@getflourish
Created September 16, 2014 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save getflourish/d1cb94643793fd044449 to your computer and use it in GitHub Desktop.
Save getflourish/d1cb94643793fd044449 to your computer and use it in GitHub Desktop.
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