The easiest way to open a file is with SimpleOpen(). This is the analog to SimpleSave() discussed here.
If you do the open interactively, you do not need to know the file's location. You simply let the user locate the proper file.
The following script passes an empty string for the fileName parameter. FrameMaker assumes the file is the last one opened.
var doc;
doc = SimpleOpen("", true);
To open a file without user interaction, you need to pass it is full pathname and false for the second parameter.
If you do the open interactively, you do not need to know the file's location. You simply let the user locate the proper file.
The following script passes an empty string for the fileName parameter. FrameMaker assumes the file is the last one opened.
var doc;
doc = SimpleOpen("", true);
To open a file without user interaction, you need to pass it is full pathname and false for the second parameter.