Skip to content

Instantly share code, notes, and snippets.

@PoomSmart
Last active August 19, 2021 04:53
Show Gist options
  • Select an option

  • Save PoomSmart/30e564dbc1ce469e5d14d9322e10205a to your computer and use it in GitHub Desktop.

Select an option

Save PoomSmart/30e564dbc1ce469e5d14d9322e10205a to your computer and use it in GitHub Desktop.

Revisions

  1. PoomSmart revised this gist Aug 19, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion LiveTextEnabler-README
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    For macOS Monterey beta 2 and higher, use https://github.com/PoomSmart/LiveTextEnabler.
  2. PoomSmart renamed this gist Jul 18, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. PoomSmart revised this gist Jul 16, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    For macOS Monterey beta 2 and higher, use https://github.com/PoomSmart/LiveTextEnabler.
  4. PoomSmart revised this gist Jun 29, 2021. No changes.
  5. PoomSmart revised this gist Jun 11, 2021. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions revert-changes.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/bash

    APP_TARGETS=(com.apple.Photos com.apple.Preview com.apple.quicklook.QuickLookUIService com.apple.Safari)

    for APP_TARGET in "${APP_TARGETS[@]}"
    do
    defaults delete /Users/$USER/Library/Containers/$APP_TARGET/Data/Library/Preferences/com.apple.VisionKit.InternalSettings
    done
  6. PoomSmart created this gist Jun 10, 2021.
    8 changes: 8 additions & 0 deletions enable-text-recognition.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/bash

    APP_TARGETS=(com.apple.Photos com.apple.Preview com.apple.quicklook.QuickLookUIService com.apple.Safari)

    for APP_TARGET in "${APP_TARGETS[@]}"
    do
    defaults write /Users/$USER/Library/Containers/$APP_TARGET/Data/Library/Preferences/com.apple.VisionKit.InternalSettings com.apple.VisionKit.InternalSettings.overrideDeviceAvailability -bool yes
    done