How to open a file embedded inside the e-book, in its associated application
Overview
This script will open a file embedded inside the e-book in the "associated application".
The "associated application" is defined as part of the user's Windows setup and can be changed by the user, or as a result of additional applications being installed on the user's system. By default, .BMP files are opened in Windows Paint, .WRI, .DOC and .RTF files are opened in WordPad, .TXT files opened in Notepad etc.
Requirements Instructions - Copy the file to be opened to the source folder.
- In one of your HTML files add the following code, replacing file.txt with the name of the file.
- If you want to open an HTML file, embedded in the e-book, in the web browser (an unusual requirement but possible I suppose), be sure to set the File Protection for HTML files to Low Security (in the Advanced Security settings dialog box) if using Activ E-Book Compiler 4.20 or later.
Notes - This script has been tested with Activ E-Book Compiler versions 4.00, 4.01, 4.20, 4.21 and 4.22 (4.22 is the latest version at the time of writing). It is possible that changes might be required for e-books made with subsequent versions.
|
|