Created
May 26, 2012 03:34
-
-
Save kuyseng/2792000 to your computer and use it in GitHub Desktop.
javascript: indesign write text file
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 write_text_file(text, path, file_name) { | |
// alert(my_file.name.split("__")[0]); | |
var file_full_url = path + "/" + file_name; | |
var my_file = new File(file_full_url); | |
my_file.open("w"); | |
my_file.write(text); | |
my_file.close(); | |
return my_file; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment