There is no issue the macro i created works fine, i just want to tidy up the layers panel by having all the adjustments and layers the macro creates grouped beforehand.
Basically i'm trying to recreate an arch viz. Photoshop script that i use in my workflow to AP. (see video below).
I want the AP macro to do the following:
create pixel layer and fill with white set to multiply, rename it Value isolation layer (so b&W adjustment can affect the layers outside group)
create B&W Adjustment, rename it Value isolation layer
create pixel layer and fill with red (r:255, g:0, b:0) set to luminosity, rename it hue isolation layer
create pixel layer and fill with red (r:255, g:0, b:0) set to hue, rename it saturation isolation layer
create HSL Shift Adjustment, set saturation shift to 45% rename it saturation isolation layer
group the 5 layers
Its number 6 that's giving me the issue, the only way I've been able to select all the layers while recording the macro is by going to the Select, Select All Layers. As i noted on my original comment, if I record the command this way and run it on a new document with many layers, all layers not locked get placed inside the group the macro creates, which is something i do not want. Which is why i think my only option is to record the macro without grouping and then group the 5 layers after running the macro, unless someone know a better way.