Open in typora

  1. Check if Typora is Installed:

    mdfind "kMDItemCFBundleIdentifier == 'abnerworks.Typora'"
    

    If not found, notify user to install it.

  2. Open the File: Replace [FILE_PATH] with the absolute path to the file.

    open -a Typora "[FILE_PATH]"