Hi, I made a little script that merges certain adjustment layers into one curves layer based on information learned here: http://www.gregapodaca.com/photoshopmechanics/files/008.html
It seems to only work for adjustment layers that operate on a per-channel basis like Curves and Color Balance so Hue/Saturation and the like won't work.
It also won't keep mask information.
I'd like to do one for Hue/Saturation as well but I can't find specifications for its file format.
Anyway, I thought I'd post this and see if anyone has suggestions for optimization and improvement.
https://mega.co.nz/#!0Elz0KQD!XZ_V1wL3didyOMl5j_WoFVjoCvFswQB9BqqCTIA4 J8E