s = ""; i = 1; while (true){ try{ s += thisComp.layer(index-1).effect(i).name; }catch (err){ break; } i++; s += "\r"; } s