Because Illustrator always uses 72 dpi to calculate the scale on raster-images, the script checks if the document is CMYK or RGB. For RGB it uses 72 dpi and for CMYK it uses the Value in Line 56...