Photoshop Javascript API document.duplicate() bug

  • 3
  • Problem
  • Updated 4 years ago
The Photoshop Javascript API document.duplicate() method will always duplicate the active document regardless of what doc-object you call the method on. I.e. docA is active and you call docB.duplicate(), Photoshop still duplicates docA. Several functions only work on active doc so might be duplicate() is missing a check for this.

Tested on latest Win CC 2014.
Photo of Matias Kiviniemi

Matias Kiviniemi

  • 8 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 3
Photo of Tom Ruark

Tom Ruark, Official Rep

  • 27 Posts
  • 12 Reply Likes
I'll make it so the activeDocument gets switched and then switched back. Reference bug # 3984607.