Script request: Adding display quality settings to existing script
I have the script below which toggles between Preview and Normal screen modes. I'm hoping someone would be able to edit/add to it so that when it's in Normal screen mode, it sets the Display Performance to Typcial Display and when it's in Preview screen mode it sets the Display performance to High Quality Display. Tried chatGPT but it wasn't helpful so any help would be greatly appreciated, thanks.
var nextMode = {
'PREVIEW_OFF' : ScreenModeOptions.PREVIEW_TO_PAGE,
'PREVIEW_TO_PAGE': ScreenModeOptions.PREVIEW_OFF
}
app.documents[0].layoutWindows[0].screenMode = nextMode[String(app.documents[0].layoutWindows[0].screenMode)];
