Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Get Localize Path with scripting

  • Get Localize Path with scripting

  • Meng Zhiqun

    November 21, 2021 at 2:36 am


    I have a script which requires the full path of the folder and object. Everything works smoothly, however, that is if the user’s os language is set to English.

    I know for a fact, based on AE’s javascript tool guide, we can temporarily set the locale to a different language to test the locale. For example this example works.

    message = { en_GB: "Please select a colour.",

    en: "Please select a colour.",

    de: "Bitte wählen Sie eine Farbe.",


    $.locale = "de"; // spanish


    $.locale = null; // restore to the locale of the app

    However, when I try to target it with a Folder.selectDialog() to try to get the localize path of the folder, it doesn’t work.

    $.locale = "es"; // spanish var chooseFol = Folder.selectDialog();


    $.locale = null; // restore to the locale of the app

    For eg. If I select the Documents folder with the above, it still shows “C:\Users\Username\Documents”, however I know for a fact that if the language is set to Spanish, Documents would be listed as Documento, which has been breaking my script. I hope someone has some insights.
    Thanks in advance!

Viewing 1 of 1 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy