tomp Posted May 3, 2012 Posted May 3, 2012 I deploy runtime solutions to my customers who have no idea what to do if they encounter a 'file damaged' condition with the instruction to use 'file recovery'. What I would like to do is trap the condition and provide a custom instruction. Now they call paniced, I give them the simple instruction, and life is good in a few minutes. Can I trap and provide the message when the runtime encounters 'file damaged'?
Vaughan Posted May 3, 2012 Posted May 3, 2012 It's a bit hard because the message will be generated from INSIDE the file, and FMP is telling the user that the file cannot be opened.
tomp Posted May 4, 2012 Author Posted May 4, 2012 It would be great if there were a file option to specify your own message to be displayed when FM can't open the file!
Vaughan Posted May 4, 2012 Posted May 4, 2012 It's a bit more complex than it looks: the file needs to phone-ahead to the FMP application and say "You're about to open my file, here is the message you should display if you cannot open it because it's damaged." To do this, use an "opener" file that opens the real file. In the script in the opener file trap for the file damaged error and issue your warning if the file cannot be opened. Just in case the opener file ever gets damaged, use another opener file to open the opener file to open the real file. Rinse and repeat.
tomp Posted May 4, 2012 Author Posted May 4, 2012 I should have thought of that! Already use an 'opener' file. Just need to capture the error. I'll risk that the opener file doesn't get damaged! It never has in 8 years - so far. Thanks!
Pixcels Posted July 5, 2012 Posted July 5, 2012 An "opener file" what's that ? Sorry is that dim. Would it help me ? http://fmforums.com/forum/topic/84963-help-cant-open-my-file/
Kris M Posted July 5, 2012 Posted July 5, 2012 I would also suggest that your clients calling you is a good thing because file recovery is never a permanent solution for corruption
Recommended Posts
This topic is 4873 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now