Reply To: Simple script to open and save file

#98836
Peter Kahrel
Participant

Hi Mike — Actually, there’s no need to create new file objects separately. You can do it as follows:

var template = app.open (File ('~/Desktop/test.indt'));
// Do stuff
template.save (File('~/Desktop/test01.indd'));
template.close();

Peter

This article was last modified on October 12, 2017

Comments (0)

Loading comments...