Hello,
I'm on a Mac, PS 13.0.4 (aka CS6).
If I, on a document
1. create a Curves adjustment layer;
2. use the "pencil" tool to manually draw the curve (the last but one tool in the column on Curve's the left)
3. select another layer (the background for instance - this last step appears to be needed in order to record the former one)
Scripting listener records all the steps, included the long:
Code: Select allvar idsetd = charIDToTypeID( "setd" );
var desc6 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref2 = new ActionReference();
var idAdjL = charIDToTypeID( "AdjL" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref2.putEnumerated( idAdjL, idOrdn, idTrgt );
desc6.putReference( idnull, ref2 );
var idT = charIDToTypeID( "T " );
var desc7 = new ActionDescriptor();
var idpresetKind = stringIDToTypeID( "presetKind" );
var idpresetKindType = stringIDToTypeID( "presetKindType" );
var idpresetKindCustom = stringIDToTypeID( "presetKindCustom" );
desc7.putEnumerated( idpresetKind, idpresetKindType, idpresetKindCustom );
var idAdjs = charIDToTypeID( "Adjs" );
var list1 = new ActionList();
var desc8 = new ActionDescriptor();
var idChnl = charIDToTypeID( "Chnl" );
var ref3 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idChnl = charIDToTypeID( "Chnl" );
var idCmps = charIDToTypeID( "Cmps" );
ref3.putEnumerated( idChnl, idChnl, idCmps );
desc8.putReference( idChnl, ref3 );
var idMpng = charIDToTypeID( "Mpng" );
var list2 = new ActionList();
list2.putInteger( 0 );
list2.putInteger( 1 );
list2.putInteger( 2 );
list2.putInteger( 3 );
list2.putInteger( 4 );
list2.putInteger( 5 );
list2.putInteger( 6 );
list2.putInteger( 7 );
list2.putInteger( 8 );
list2.putInteger( 9 );
list2.putInteger( 10 );
list2.putInteger( 11 );
list2.putInteger( 12 );
list2.putInteger( 13 );
list2.putInteger( 14 );
list2.putInteger( 15 );
list2.putInteger( 16 );
list2.putInteger( 17 );
list2.putInteger( 18 );
list2.putInteger( 94 );
list2.putInteger( 96 );
list2.putInteger( 97 );
list2.putInteger( 98 );
list2.putInteger( 98 );
list2.putInteger( 99 );
list2.putInteger( 100 );
list2.putInteger( 101 );
list2.putInteger( 102 );
list2.putInteger( 103 );
list2.putInteger( 103 );
list2.putInteger( 104 );
list2.putInteger( 105 );
list2.putInteger( 106 );
list2.putInteger( 107 );
list2.putInteger( 108 );
list2.putInteger( 108 );
list2.putInteger( 109 );
list2.putInteger( 110 );
list2.putInteger( 111 );
list2.putInteger( 111 );
list2.putInteger( 111 );
list2.putInteger( 111 );
list2.putInteger( 112 );
list2.putInteger( 112 );
list2.putInteger( 112 );
list2.putInteger( 112 );
list2.putInteger( 112 );
list2.putInteger( 112 );
list2.putInteger( 112 );
list2.putInteger( 113 );
list2.putInteger( 113 );
list2.putInteger( 113 );
list2.putInteger( 113 );
list2.putInteger( 113 );
list2.putInteger( 113 );
list2.putInteger( 114 );
list2.putInteger( 114 );
list2.putInteger( 114 );
list2.putInteger( 114 );
list2.putInteger( 114 );
list2.putInteger( 114 );
list2.putInteger( 114 );
list2.putInteger( 115 );
list2.putInteger( 115 );
list2.putInteger( 115 );
list2.putInteger( 115 );
list2.putInteger( 115 );
list2.putInteger( 115 );
list2.putInteger( 115 );
list2.putInteger( 116 );
list2.putInteger( 116 );
list2.putInteger( 116 );
list2.putInteger( 116 );
list2.putInteger( 116 );
list2.putInteger( 114 );
list2.putInteger( 113 );
list2.putInteger( 112 );
list2.putInteger( 111 );
list2.putInteger( 109 );
list2.putInteger( 108 );
list2.putInteger( 107 );
list2.putInteger( 106 );
list2.putInteger( 104 );
list2.putInteger( 103 );
list2.putInteger( 102 );
list2.putInteger( 101 );
list2.putInteger( 99 );
list2.putInteger( 98 );
list2.putInteger( 97 );
list2.putInteger( 96 );
list2.putInteger( 94 );
list2.putInteger( 93 );
list2.putInteger( 91 );
list2.putInteger( 89 );
list2.putInteger( 87 );
list2.putInteger( 84 );
list2.putInteger( 82 );
list2.putInteger( 79 );
list2.putInteger( 77 );
list2.putInteger( 74 );
list2.putInteger( 71 );
list2.putInteger( 70 );
list2.putInteger( 68 );
list2.putInteger( 66 );
list2.putInteger( 64 );
list2.putInteger( 62 );
list2.putInteger( 60 );
list2.putInteger( 58 );
list2.putInteger( 56 );
list2.putInteger( 54 );
list2.putInteger( 52 );
list2.putInteger( 49 );
list2.putInteger( 49 );
list2.putInteger( 47 );
list2.putInteger( 46 );
list2.putInteger( 45 );
list2.putInteger( 43 );
list2.putInteger( 42 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 40 );
list2.putInteger( 41 );
list2.putInteger( 42 );
list2.putInteger( 43 );
list2.putInteger( 44 );
list2.putInteger( 45 );
list2.putInteger( 46 );
list2.putInteger( 47 );
list2.putInteger( 48 );
list2.putInteger( 49 );
list2.putInteger( 51 );
list2.putInteger( 53 );
list2.putInteger( 55 );
list2.putInteger( 57 );
list2.putInteger( 59 );
list2.putInteger( 61 );
list2.putInteger( 63 );
list2.putInteger( 65 );
list2.putInteger( 67 );
list2.putInteger( 69 );
list2.putInteger( 71 );
list2.putInteger( 73 );
list2.putInteger( 75 );
list2.putInteger( 77 );
list2.putInteger( 79 );
list2.putInteger( 81 );
list2.putInteger( 83 );
list2.putInteger( 85 );
list2.putInteger( 87 );
list2.putInteger( 89 );
list2.putInteger( 91 );
list2.putInteger( 93 );
list2.putInteger( 95 );
list2.putInteger( 97 );
list2.putInteger( 99 );
list2.putInteger( 101 );
list2.putInteger( 104 );
list2.putInteger( 107 );
list2.putInteger( 110 );
list2.putInteger( 113 );
list2.putInteger( 116 );
list2.putInteger( 118 );
list2.putInteger( 121 );
list2.putInteger( 124 );
list2.putInteger( 127 );
list2.putInteger( 130 );
list2.putInteger( 133 );
list2.putInteger( 136 );
list2.putInteger( 139 );
list2.putInteger( 142 );
list2.putInteger( 145 );
list2.putInteger( 148 );
list2.putInteger( 150 );
list2.putInteger( 153 );
list2.putInteger( 156 );
list2.putInteger( 159 );
list2.putInteger( 162 );
list2.putInteger( 165 );
list2.putInteger( 169 );
list2.putInteger( 174 );
list2.putInteger( 178 );
list2.putInteger( 182 );
list2.putInteger( 186 );
list2.putInteger( 191 );
list2.putInteger( 195 );
list2.putInteger( 197 );
list2.putInteger( 198 );
list2.putInteger( 200 );
list2.putInteger( 200 );
list2.putInteger( 200 );
list2.putInteger( 200 );
list2.putInteger( 199 );
list2.putInteger( 198 );
list2.putInteger( 196 );
list2.putInteger( 195 );
list2.putInteger( 193 );
list2.putInteger( 191 );
list2.putInteger( 189 );
list2.putInteger( 188 );
list2.putInteger( 187 );
list2.putInteger( 185 );
list2.putInteger( 183 );
list2.putInteger( 182 );
list2.putInteger( 180 );
list2.putInteger( 178 );
list2.putInteger( 177 );
list2.putInteger( 175 );
list2.putInteger( 173 );
list2.putInteger( 172 );
list2.putInteger( 170 );
list2.putInteger( 168 );
list2.putInteger( 167 );
list2.putInteger( 164 );
list2.putInteger( 163 );
list2.putInteger( 161 );
list2.putInteger( 160 );
list2.putInteger( 158 );
list2.putInteger( 156 );
list2.putInteger( 154 );
list2.putInteger( 152 );
list2.putInteger( 151 );
list2.putInteger( 148 );
list2.putInteger( 147 );
list2.putInteger( 145 );
list2.putInteger( 143 );
list2.putInteger( 141 );
list2.putInteger( 139 );
list2.putInteger( 137 );
list2.putInteger( 135 );
list2.putInteger( 133 );
list2.putInteger( 131 );
list2.putInteger( 129 );
list2.putInteger( 127 );
list2.putInteger( 125 );
list2.putInteger( 123 );
list2.putInteger( 121 );
list2.putInteger( 118 );
list2.putInteger( 242 );
list2.putInteger( 243 );
list2.putInteger( 244 );
list2.putInteger( 245 );
list2.putInteger( 246 );
list2.putInteger( 247 );
list2.putInteger( 248 );
list2.putInteger( 249 );
list2.putInteger( 250 );
list2.putInteger( 251 );
list2.putInteger( 252 );
list2.putInteger( 253 );
list2.putInteger( 254 );
list2.putInteger( 255 );
desc8.putList( idMpng, list2 );
var idCrvA = charIDToTypeID( "CrvA" );
list1.putObject( idCrvA, desc8 );
desc7.putList( idAdjs, list1 );
var idCrvs = charIDToTypeID( "Crvs" );
desc6.putObject( idT, idCrvs, desc7 );
executeAction( idsetd, desc6, DialogModes.NO );
Apparently this doesn't happen on version 12.1 (CS5 - at least on Mac) and I've been reported that output may vary (i.e. sometimes yes, sometimes no, damn why?!) on version 13.0.1 Mac, doesn't work on 13.0.1 PC.
On CS5 you can't even record this into an Action.
Could you please try and report back?
Thank you
Davide