2020/07/10

解決OS X的Finder重複”Open with”選項

如果您是Mac用戶,您很有可能會遇過選擇了某檔案時,點擊老鼠先生右掣後彈出來的Context Menu中,那個Open with選項有一大堆重複的program…

osx-openwith-mess-before

我只一個HTML檔,連XCode的iOS Simulator都跑四次出來,看到都覺得很煩吧?

於是花了幾秒時間,找找解決方案───

在TUAW就找到了這個:Terminal Tips: Rebuild your Launch Services database to clean up the Open With menu

不會英文、不點下去不打緊,簡單來說就是從Terminal中輸入一條CLI指令就行:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"

然後…… 沒然後,就醬搞定!

osx-openwith-mess-after

TA-DA!!