Question
Finding local settings of the user
Hello all,
I am afraid I am missing some basic understanding of at least the windows filesystem.
I would like to write a script that processes the user's keyboard shortcuts. For that I would need the user to select the text file containing the exported shortcuts.
I've got these lines to find the folder containing the text file in question:
This works fine on the mac.
Under Windows it doesn't. Two questions:
- won't this work because "local settings" is a hidden folder?
- is there any way at all to point the open-file-dialog to that cache folder?
- is there a language-neutral syntax for that path?
Thank you for any help
Gerald
I am afraid I am missing some basic understanding of at least the windows filesystem.
I would like to write a script that processes the user's keyboard shortcuts. For that I would need the user to select the text file containing the exported shortcuts.
I've got these lines to find the folder containing the text file in question:
var pltfrm = File.fs;
if (pltfrm == "Macintosh") {
var dummyFile = new File("~/Library/Caches/Adobe InDesign/Version 5.0/InDesign SavedData");
} else {
var dummyFile = new File("~/Lokale Einstellungen/Anwendungsdaten/Adobe/InDesign/Version 5.0/Caches/InDesign/Standard.txt");
}
var bFile = dummyFile.openDlg ("Mit Vorgabe");
This works fine on the mac.
Under Windows it doesn't. Two questions:
- won't this work because "local settings" is a hidden folder?
- is there any way at all to point the open-file-dialog to that cache folder?
- is there a language-neutral syntax for that path?
Thank you for any help
Gerald