Is there a command to scan a disk from the Terminal.app?

You can use a standard “open” command to scan a disk or folder.

Here is an example shell script to scan a disk which mounted on “/Volumes/Example Disk”. The disk will be scanned and added to the primary catalog file. (You can change the primary catalog file (first startup catalog file) at the General preferences panel of DiskCatalogMaker.)

open -a /Applications/DiskCatalogMaker.app '/Volumes/Example Disk'

If you would like to add the scanned data to the catalog file “/Users/example/Catalog#2.dcmd”, use the shell script below.

open -a /Applications/DiskCatalogMaker.app '/Users/example/Catalog#2.dcmd' '/Volumes/Example Disk'

See also: