function layout (artboards) {
    var x = 0;
    var artboard;
    for (var i = 0; i < artboards.length; i++) {
        artboard = artboards[i];
        artboard.frame().setX(x);
        x += artboard.frame().width() + 100;
    }

}
Style Inventory Generator

This command shows a configuration dialog before running the selected inventories.
If the export checkbox is selected, the styles will be exported to a export folder near the Sketch file.