Skip to main content
rcraighead
Legend
April 2, 2019
Answered

Toggle to "Full Screen Mode" using Javascript?

  • April 2, 2019
  • 1 reply
  • 928 views

For a specific task I'd like to toggle to "Full Screen Mode" between scripts. I can use "F" to toggle between modes, but I won't know what mode the user is currently in so I won't know how many times to press "F". I don't see "Full Screen Mode" listed in the "do Menu Item" list (probably because it's not a menu item). Is this scriptable (Javascript)?

This topic has been closed for replies.
Correct answer pixxxelschubser

rcraighead  schrieb

… Is this scriptable (Javascript)?

Yes.

app.documents[0].views[0].screenMode = ScreenMode.FULLSCREEN;

Have fun

1 reply

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
April 2, 2019

rcraighead  schrieb

… Is this scriptable (Javascript)?

Yes.

app.documents[0].views[0].screenMode = ScreenMode.FULLSCREEN;

Have fun

rcraighead
Legend
April 2, 2019

Thank you, pixxxel, I had missed that section in the scripting guide.

Scripting Constants — Illustrator Scripting Guide 0.0.1 documentation