I have had a look at the forums and the help documentation and I am unable to achieve what I desire.
When the user selects 'Save As' (or save if file previosuly unsaved) max uses a path and filename (and file type, this case .max) from a predefined custom variable.
I have tried:
callbacks.addScript #filepresave "test.max"
getSaveFilename filename: (file_path+file_name)
#2 I found is very close to what I need, except if I use this with the '#filepresave' 2 dialog boxes will open which is not desirable.
Please note I am not after replacing the current 'save/save as' dialog box, all I wish to do is have the file open at a predefined directory and a filename (which will contain the .max extension) inside the 'filename' field. I also do not wish to have a seperate 'save/save as' UI.
Any suggestions is greatly appreciated.