Skip to main content
stephanep17087726
Participant
February 26, 2018
Answered

Photoshop - Script - How to script Window>Arrange>Match Zoom

  • February 26, 2018
  • 5 replies
  • 1489 views

Hi Everybody,

I am writing a very short script as a test script and I am stuck on the last command I would like to perform.

I can split my document in two windows:

app.runMenuItem(charIDToTypeID('NwVw'));

then I can Arrange as two vertical tiles:

app.runMenuItem(stringIDToTypeID ('tileVertically'));

then I can Zoom In or Out in the active window:

app.runMenuItem(charIDToTypeID('ZmOt'));  ( or 'ZmIn' )

but I cannot find the Menu ID for

Window > Arrange > Match Zoom

( or even Window > Arrange > Match All)

Does Anyone know how to script that menu action?

Many thanks for your help.

Regards,

Stephane.

This topic has been closed for replies.
Correct answer Jeff Arola

Window > Arrange > Match Zoom

app.runMenuItem(stringIDToTypeID ('matchZoom'));

Window > Arrange > Match All

app.runMenuItem(stringIDToTypeID ('matchZoomAndLocation'));

5 replies

stephanep17087726
Participant
February 27, 2018

Many thanks to all, that was helpful and allowed me to go further in my whole project...

Have a very nice one.

Best regards,

Stephane

Kukurykus
Legend
February 27, 2018

Mine answer wasn't enough good to mark it as right solution though I posted it first? Jeff Arola​​​'s is the same I posted earlier.

Jeff Arola
Community Expert
Jeff ArolaCommunity ExpertCorrect answer
Community Expert
February 26, 2018

Window > Arrange > Match Zoom

app.runMenuItem(stringIDToTypeID ('matchZoom'));

Window > Arrange > Match All

app.runMenuItem(stringIDToTypeID ('matchZoomAndLocation'));

Kukurykus
Legend
February 26, 2018

runMenuItem(stringIDToTypeID("matchZoom"/* + "AndLocation"*/))

davescm
Community Expert
Community Expert
February 26, 2018

Hi

I've moved your post to the Photoshop Scripting forum

Dave

February 26, 2018

Hi

Might be better for you to post your question on the Photoshop Scripting forum

Photoshop Scripting