Use a reference to a file in the C:\ directory and use:
I am looking to do a similar thing, but pointing to a folder on a named server containing InDesign Files. Can this initial default folder be set in the same way?
I am currently using "var myFile = File.openDialog("Choose the file Containing the Styles you want to import");" so I am guessing can pass a default directory to the openDialog function?
I have looked and the Object Model doesn't show me this option
var myFolder = Folder("/C/"); // open C directory var myFolder = Folder("/Volumes/MountedVolumeName/FolderName/SubFolderName/"); // folder on a server on Mac var myFolder = Folder("//ServerName/ShareName"); // folder on a server on Windows var myMask = "INDD:*.indd"; var myFile = myFolder.openDlg("Select Files To Open", myMask, true);