Obtaining the maxFilepath of the file about to load

maxFilePath returns the path of the currently open maxfile.

Anyone know a way to expose the path of the file the user is about to open?

For example,

  1. the user selects File, open…, selects a file

Is there a way to expose the path of that selected file before it actually loads?

Thanks,

J.

Some interesting info in case anyone cares.

The following info from the docs does what I was looking for:

callbacks.removeScripts id:#testCallback
callbacks.addScript #filePreOpenProcess “print (callbacks.notificationParam())” id:#testCallback

However, I had another #filePreOpenProcess callback and it was being read in first for some reason. This was weird since the second callback was listed after the one listed above. Anyway – combining the two pieces using a function and calling that with one callback works.