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

Localize Adobe Default Folder names

New Here ,
Dec 02, 2005 Dec 02, 2005
Is there a built-in way to script for variations in folder name according to the Adobe app language. For example, the folders 'Presets' and 'Scripts' in Photoshop have (I believe) different names in different language releases of Photoshop. Is there a built in method for dealing with this (ie that will convert an English string to a German string etc). I had a look at the localize function and it seems to me that you have to supply the string yourself, but perhaps I am not grasping it correctly.

Andrew
TOPICS
Scripting
664
Translate
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
New Here ,
Dec 06, 2005 Dec 06, 2005
I know the subject might appear wrong-forumish but with Bridge becoming the control centre for CS2 these problems are increasingly going to present as Bridge problems.

Anyway, what I am going to do is have my scripts test for the presence of the English language folder, and then, when it is absent - and it is critical, prompt users for folder names.

Andrew
Translate
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
Dec 20, 2005 Dec 20, 2005
var strPresets = localize ("$$$/ApplicationPresetsFolder/Presets=Presets");
var strScripts = localize ("$$$/PSBI/Automate/ImageProcessor/Photoshop/Scripts=Scripts");
Translate
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
New Here ,
Dec 20, 2005 Dec 20, 2005
Tom

Thanks so much for that - it could go quite a way to being able to extend my scripts to other language users of PS. It's a bit difficult for me to test since I am on an English version of CS2. Do I understand right that the following in Photoshop will give me the default scripts folder regardless of installation language (using your variables above):

var scriptfolder = Folder(app.path+ '/' + strPresets + '/' + strScripts);

And would this work in CS (since I try to make scripts CS compatible).

Andrew
Translate
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
Dec 21, 2005 Dec 21, 2005
LATEST
For CS2 yes. I'm not sure about CS. I doubt it.
Translate
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