Skip to main content
matias.kiviniemi
Legend
April 15, 2015
Question

document.duplicate bug

  • April 15, 2015
  • 1 reply
  • 476 views

For everyones information, noticed that document.duplicate will always duplicate the active document regardless of what doc-object you call the method on. This is at least on latest Win CC 2014.

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
April 15, 2015

resizeCanvas for example results in the notice "… requires that the target document is the frontmost document", that duplicate simply uses the frontmost document does seem inconsistent.

matias.kiviniemi
Legend
April 15, 2015

Yeah. I mean just from Javascript perspective if you have object.method() call the method should always be applied to to the object. If, like quite often, object needs to be in active doc it should raise the exception (most likely they've just missed this check). Actually that's I've not noticed it before is that you don't typically manipulate anything but the active doc.

c.pfaffenbichler
Community Expert
Community Expert
April 15, 2015

Maybe you should post a bug report over at

http://feedback.photoshop.com/photoshop_family/

I doubt it will get much support (Scripting not being something that all Photoshop users pursue) but that way it should at least officially be on Adobe’s radar.