Correct ! the code provided in the adobe webpage work even on my PS CC.2015 but in order to work you need to convert smart Object to linked (Layer ---> Smart Object ---> Convert to linked). try { var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID(&qu...