PDA

View Full Version : Looking for 'Read Only' detection/prompt script


sigma
07-10-2009, 02:50 PM
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?

JHaywood
07-10-2009, 11:42 PM
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()'.

CGTalk Moderation
07-10-2009, 11:42 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.