View Single Post
Old 07-24-2009, 07:55 AM   #1
UniversalisPub
Publisher
UniversalisPub began at the beginning.
 
UniversalisPub's Avatar
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Device: none
Mobigen return codes / error indications?

We publish Universalis, an application that lets you read content directly and can also export it in ePub format. I'd like to extend this so that it exports Mobipocket format also.

I have tried everything by hand, and the workflow "1. Export lightly-seasoned ePub. 2. Run Mobigen on it" works perfectly.

Human beings, however, do not do command lines or directories or command-line utilities, so for them the workflow needs to be automated into a single menu choice, just as we have already done for the ePub format.

My question is: is there an easy way of telling whether a particular mobigen.exe run has succeeded or not, without forcing the user to read and understand all its messages?

For example, is it guaranteed that if an error occurs, a .mobi file will definitely not be created? In that case we could take non-existence of the output file as the error indicator, and if the output file indeed doesn't exist, we can tell the user to read the log to see what happened.

Or perhaps a return code indicates whether or not an error has occurred?

Last edited by UniversalisPub; 07-24-2009 at 07:58 AM. Reason: Clearer title
UniversalisPub is offline   Reply With Quote