Skip to main content
Damienned
Inspiring
May 25, 2013
Question

Looking for localize names of script folders

  • May 25, 2013
  • 1 reply
  • 603 views

Hi, i'm trying to get a list of all the scriptfolder names.

This will solve path issues with other language versions of illustrator.

My script for now:

scriptfolder = {

en: "Scripts",

nl: "Scripts",

de: "Skripten"

};

var imageiconprinter = File(app.path+'/Presets.localized/' + app.locale + '/'+localize(scriptfolder)+'/idatabase/Images/Infopanel_heinerich/heinerichinfopanelprinter.png');

I've defined a country like de: which is german and put the correct foldername behind it.

I would love to have a list of all countrys.

if you don't have a list just fill in the foldername and countryname of your country.

Thanks

Daniel

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
May 25, 2013

Perhaps this helps a little bit. It is language-independent and shows the path (or the name) to the corresponding scripts folder completly.

#target Illustrator

// at first save this script and than run

var fo = File($.fileName).parent.fsName; //path to scripts folder

//var fo = File($.fileName).parent.name; // the name of scripts folder

alert (fo)

The result should always display the folder where the script is stored.