Photoshop CC 2015: window.location scripting bug

  • 2
  • Problem
  • Updated 3 years ago
  • Solved
  • (Edited)
Scripting bug in CC2105

Only tested on Win 7.....

window.location doesn't work for any of my dialog windows. It centers the window regardless of the coordinates. All of my scripts works fine on CS3/4/5/6/CC/CC2014. This issues just popped up on CC2015.

window.location still works on palettes though
Photo of Damon Bell

Damon Bell

  • 24 Posts
  • 4 Reply Likes

Posted 4 years ago

  • 2
Photo of Wootie Wootface

Wootie Wootface

  • 2 Posts
  • 0 Reply Likes
Yes, mine remembers Window panel locations that I have saved into a "Workspace". BUT not the main PS Window.

This is a very annoying bug I have to deal with everytime Photoshop starts up. Sure hope Adobe fixes it.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 827 Reply Likes
The topic is about a scripting API, not about panel locations or the application window.
Photo of Wootie Wootface

Wootie Wootface

  • 2 Posts
  • 0 Reply Likes
Oops. I'll take this to another thread!
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14992 Posts
  • 2091 Reply Likes
Official Response
Hi Damon, this should be fixed in our next update.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14992 Posts
  • 2091 Reply Likes
Official Response
This should be solved by the CC 2015.1 update that was released today: https://blogs.adobe.com/photoshop/201...
Photo of Damon Bell

Damon Bell

  • 24 Posts
  • 4 Reply Likes
Thanks for the update Jeff! I just got a chance to update to 2015.1. The .location works perfectly :) Also, I love the new CC2015.1 scripting window design. It looks really sharp.

Just FYI for anyone needing to do this, if you are using .frameLocation then you'll need to change it to .location. I just realized that one of my windows was using .frameLocation instead of .location. That window was still centering. I switched that one to .location which fixed it. Maybe the difference between the 2 values is the window border width or something, not sure????? In any case, .location works perfectly so all is good.