• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Photoshop script get user Preferences...

Advisor ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

Hello,

 

In our scripts dialog window we display our company branded logo, I can change the logo used based on the users preference settings in Indesign and Illustrator but is it possible to get the user Preferences>Interface>Color Theme with javascript or AM code in Photoshop?

 

Regards,

Mike

TOPICS
Actions and scripting

Views

584

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Apr 28, 2023 Apr 28, 2023
var s2t = stringIDToTypeID;

(r = new ActionReference()).putProperty(s2t('property'), p = s2t('interfacePrefs'));
r.putEnumerated(s2t('application'), s2t('ordinal'), s2t('targetEnum'));
currentColorTheme = typeIDToStringID(executeActionGet(r).getObjectValue(p).getEnumerationValue(s2t('kuiBrightnessLevel')));

alert(currentColorTheme);

Votes

Translate

Translate
Adobe
Guide ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

var s2t = stringIDToTypeID;

(r = new ActionReference()).putProperty(s2t('property'), p = s2t('interfacePrefs'));
r.putEnumerated(s2t('application'), s2t('ordinal'), s2t('targetEnum'));
currentColorTheme = typeIDToStringID(executeActionGet(r).getObjectValue(p).getEnumerationValue(s2t('kuiBrightnessLevel')));

alert(currentColorTheme);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

LATEST

@jazz-y,

 

Thank you!...That's what I needed.

Regards,

Mike

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines