Problem with getting actualPpi & effectivePpi for (Photoshop) EPS via JS
While updating my old script, I encountered a problem: in modern versions of InDesign (e.g. 2024, 2026), an attempt to get actualPpi & effectivePpi for a placed (raster) EPS file (created in Photoshop) — aka EPS object — results in the 'A value is not available for this type of image.' error message.

In CS3, where the script was originally created, it worked properly.

So, as far as I understand, I have to remove this file type from processing by the script because of yet another bug introduced by Adobe?
For testing, in CS3 and InDesign versions 2024, 2026 I used exactly the same EPS file and script.
main();
function main() {
try {
var doc = app.activeDocument;
var link = doc.links[0];
var linkType = link.linkType;
var image = link.parent;
var actualPpi = image.actualPpi;
var effectivePpi = image.effectivePpi;
}
catch(err) {
$.writeln(err.message + ", line: " + err.line + " | " + err.number);
}
}
