Copy link to clipboard
I created an accidental typo in a line of code for a Photoshop script:
var x = parseFloat(app.activeDocument..activeLayer.bounds);
See where I went wrong...
.. instead of .
It should have been
var x = parseFloat(app.activeDocument.activeLayer.bounds);
However, the error I got was:
XML.descendants() cannot work with instances of this class
And it got me thinking, what does that error actually refer to? - not that I was using XML in this case. Does double dot in this case, break dot notation?
Maybe this will help