Skip to content

Instantly share code, notes, and snippets.

@dzg
dzg / Convert Groups To Layers.jsx
Created May 5, 2020 17:43 — forked from edygar/Convert Groups To Layers.jsx
Illustrator Script: Convert Groups under selected to Layers
// Save to... /Applications/Adobe Illustrator CC/Presets.localized/<LOCALE>/Scripts/
// Polyfill for forEach
function forEach(array, fn, scope) {
scope = scope || array;
// array is cloned in order to allow mutations
// in `fn` but not suffer from them, so iteration
// keeps normally.
array = Array.prototype.slice.call(array,0);
for(var i = 0, len = array.length; i < len; i++) {