Notifications
Clear all

[Closed] Looking for 'Read Only' detection/prompt script

I’m looking for a script that will prompt the user if the file being opened in Max is Read Only. Anyone know if this is possible?

1 Reply

Should be possible. You’ll want to use a #filePreOpen callback along with the ‘getFileAttribute’ command. You can get the name of the file using (maxFilePath + maxFileName).

If you can’t get the name that way (because maybe it hasn’t been defined at the point in the open process), you can use the #filePreOpenProcess callback along with ‘callbacks.notificationParam()’.