I'd like to extract content of old
.chm file into individual html files.
Is there an app or command line tool for this?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
For $1 (instead of $18 for FileJuicer) you might consider this app:
It worked correctly for me. (I have no relationship with the developer, just a happy customer.)
This is pretty easy to do for free you just have to use Terminal and install Homebrew and chmlib.
Install Homebrew by visiting http://brew.sh/ and follow the installation instructions. Or just copy paste this command into Terminal and run it.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After the install is complete type
brew install chmlib in Terminal and press enter.
Go back to Terminal and type:
extract_chmLib ~/Desktop/name_of_the_file.chm ~/Desktop/name_of_the_file
Just be sure to replace
name_of_the_file.chm with the actual name of the file. This will create a new folder on your desktop.
Open the folder and double click the file index.html. This will open the document in your web browser.
Perhaps http://echoone.com/filejuicer/formats/chm will do the job for you.
FWIW, my chm to HTML workflow differs though. I use iCHM app (http://www.macupdate.com/app/mac/28171/ichm) for OS X to convert chm to PDF to preserve formatting. After editing it (using Adobe Acrobat) as necessary, only then do I convert to HTML.
From the website:
Tubby is no longer maintained or supported. It is a CHM file expander, opening Combined HTML Help files and outputting their contents in a folder of the same name. You can access the source on the side and use as you see fit.
Requirements. Tubby runs on Mac OS X 10.3.9 or higher.