Skip to content

Instantly share code, notes, and snippets.

@Yamonov
Last active September 4, 2025 13:03
Show Gist options
  • Select an option

  • Save Yamonov/d8c1a72f784174b334e6b741d2bac6c2 to your computer and use it in GitHub Desktop.

Select an option

Save Yamonov/d8c1a72f784174b334e6b741d2bac6c2 to your computer and use it in GitHub Desktop.
Photoshop、Illustrator、InDesignのベータ版をLaunchServiceDBから一時的に除外する
#!/bin/zsh
lsreg="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister"
apps=(
"/Applications/Adobe Photoshop (Beta)/Adobe Photoshop (Beta).app,フォトショップベータ"
"/Applications/Adobe Illustrator (Beta)/Adobe Illustrator.app,いられベータ"
"/Applications/Adobe InDesign 2025 (Beta)/Adobe InDesign 2025 (Beta).app,いんででベータ"
)
for app in "${apps[@]}"; do
path="${app%%,*}"
label="${app#*,}"
err_output=$("$lsreg" -u "$path" 2>&1 >/dev/null)
if [[ "$err_output" == failed\ to\ scan* ]]; then
echo "ℹ️ 既に処理済み: $label"
else
echo "✅ 開く候補から除外しました: $label"
fi
done

Betaがうざい

いつもはBridge経由であっても、たまにFinderでpsdだぶくりで(Beta)が起動してしまうのがうざい。 Finderでデフォルトアプリを設定してもAdobe Photoshop (Beta).appに戻ってしまう。

そんなときに

一時的にBeta版を登録解除し、Finder等のデフォルト指定リストから外します。 Betaを起動すると再登録されるため、必要時に走らせてください。

appsのパスは自分の環境、バージョンに合わせて書き換えてください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment