To build bootable Mac disks of your own Disk Drill relies on AppleScript where needed and also implements its own data management algorithms. Disk Drill is the easiest way to create a free bootable Mac OS X USB drive and use it for data recovery and emergency data management.
Mac OS X and macOS don't ship on a bootable disk any more for a long time now. For some, this might be a big inconvenience, as you actually need a running Mac computer to download and install macOS from the Mac App Store, and there's nothing you can do if your only Mac crashes into an unbootable state, except for taking it to the repair shop. It could be so much easier to just insert a bootable Mac USB drive into your MacBook, and start fresh, or, and it's a much better alternative in case of an emergency like that, use Disk Drill's bootable drive, which helps you recover your data from a glitchy Mac before reinstalling macOS.
The new OS installation may and most probably will format your hard drive and easily overwrite all your existing data. Disk Drill prevents that from happening and lets you create a USB boot drive for your Mac to run data recovery from it in a matter of minutes, so you can safely proceed with resurrecting your Mac afterwards.