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: xbytor, DavideBarranca, Paul MR

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

Programmatically change a certain setting in Preferences Window

Postby vision1776 » Wed Sep 19, 2018 8:17 pm

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
image.png
Preferences screen shot
image.png (24.08 KiB) Viewed 333 times

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

Re: Programmatically change a certain setting in Preferences Window

Postby Kukurykus » Thu Sep 20, 2018 1:53 pm

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()


Return to “Help Me”

Who is online

Users browsing this forum: No registered users and 6 guests