Skip to content

Instantly share code, notes, and snippets.

@kuyseng
Created May 26, 2012 03:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kuyseng/2792057 to your computer and use it in GitHub Desktop.
Save kuyseng/2792057 to your computer and use it in GitHub Desktop.
javascript: indesign get all files in folder
function get_folder_files(file_type, title, param_path) {
// v.0.1.2
var path = "";
if(!param_path) {
var tmp_file = File.openDialog(title, file_type);
if(!tmp_file) {exit(); };
path = tmp_file.path;
}else { path = param_path; };
var my_folder = new Folder(path);
return my_folder.getFiles(file_type);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment