Programmatically change a certain setting in Preferences Window

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

vision1776
Posts: 1
Joined: Wed Sep 19, 2018 7:53 pm

Programmatically change a certain setting in Preferences Window

Post by vision1776 »

In the Preferences window, in the General tab, I need a way to access the setting called "Show Start Workspace When No Documents Are Open" through code or some other way other than manually going in there and setting it.

I have tried looking into the

Code: Select all

app.preferences
object properties and this setting doesnt seem to be found anywhere. I have looked around in the registry and nothing there. I have also tried looking for some cofig json or xml but no luck either.

If anyone knows of any way that I can set that from code or editing a config file or registry please let me know.

My sincere thanks
Attachments
Preferences screen shot
Preferences screen shot
image.png (24.08 KiB) Viewed 5255 times

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

User avatar
Kukurykus
Posts: 531
Joined: Mon Jul 25, 2016 12:36 pm

Re: Programmatically change a certain setting in Preferences Window

Post by Kukurykus »

Send me PM for more questions:

Code: Select all

sTT = stringIDToTypeID; function wS(v) {
(ref = new ActionReference()).putProperty(sTT('property'), gP = sTT('generalPreferences'))
ref.putClass(sTT('application')); (dsc1 = new ActionDescriptor()).putReference(sTT('null'), ref);
(dsc2 = new ActionDescriptor()).putBoolean(sTT('welcomeScreen2'), !!v)
dsc1.putObject(sTT('to'), gP, dsc2), executeAction(sTT('set'), dsc1)
}

wS()