Created
May 26, 2012 03:52
-
-
Save kuyseng/2792057 to your computer and use it in GitHub Desktop.
javascript: indesign get all files in folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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