What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Reply to thread

This should give you a more complete listing...


[CODE]

#target Photoshop;

var f = new File(Folder.desktop + "/Preset List.txt");

f.open("w");

f.writeln("--- Brushes");

f.writeln(getBrushList(0).join("\n"));

f.writeln("--- Colors");

f.writeln(getBrushList(1).join("\n"));

f.writeln("--- Gradients");

f.writeln(getBrushList(2).join("\n"));

f.writeln("--- Styles");

f.writeln(getBrushList(3).join("\n"));

f.writeln("--- Patterns");

f.writeln(getBrushList(4).join("\n"));

f.writeln("--- shapingCurves");

f.writeln(getBrushList(5).join("\n"));

f.writeln("--- shapingCurves");

f.writeln(getBrushList(6).join("\n"));

f.writeln("--- toolPresets");

f.writeln(getBrushList(7).join("\n"));

f.close();

alert("File created \n" + decodeURI(f));


function getBrushList(num){

   var desc, brushList, ref;

   ref = new ActionReference();

   ref.putProperty( charIDToTypeID("Prpr"), stringIDToTypeID("presetManager") );

   ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );

   desc = executeActionGet(ref);

   var brushList = desc.getList(stringIDToTypeID("presetManager")).getObjectValue(num).getList(charIDToTypeID("Nm  ")); 

   var Names = new Array();

   for (var z = 1; z<brushList.count;z++){

    try{

    Names.push(brushList.getString(z));

    }catch(e){alert(e);return;}

    }

return Names;

};



[/CODE]


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top