4
4

More than 5 years have passed since last update.

Spotlight検索時のデベロッパー項目を消す

Posted at

みなさんSpotlight使ってますか?
Rubyistとしては辞書を頻繁に引く癖を付けるため、Spotlightでよく単語を引いてます。
頻繁にアクセスするフォルダ名を入力して飛んだり、結構便利だなぁと思っているのですが、デベロッパー項目としてずらりと羅列されるファイルが鬱陶しいです。(使いこなせば便利なのかも知れませんが…)
そしてSpotlightの項目から設定で消せません。なので直接弄って消しましょう。

with text editor

Terminal
ファイルの形式をxmlに変換
plutil -convert xml1 ~/Library/Preferences/com.apple.spotlight.plist
vimか何かでファイルを編集
vim ~/Library/Preferences/com.apple.spotlight.plist
以下を</source>前に追記

        <dict>
            <key>enabled</key>
            <false/>
            <key>name</key>
            <string>SOURCE</string>
        </dict>

変換したファイルを元に戻す
plutil -convert binary1 ~/Library/Preferences/com.apple.spotlight.plist

ログアウトして再度ログイン

with Xcode

Terminal
open ~/Library/Preferences/com.apple.spotlight.plist
Xcode
orderdItemsにあるItem 0 - 14に加えて、一つ追加します。
1. orderdItemの横に出る+で項目を追加
2. Item 0 が出来たのを確認しTypeに Dictionaryを選択
3. Item 0 の小項目に以下の2つを追加
+ Key: enabled, Type: boolean, Value: NO
+ Key: name, Type: String, Value: SOURCE
4. 保存して終了、ログアウトして、再度ログイン


どっちもやってることは同じなんですが、Xcode経由で編集すると重い…ので。
以上でSpotlight検索時にデベロッパー項目が消えているかと思います。

問題点としてはSpotlightの設定を開くとその時点でSourceの項目が上書きされるか元の状態に復元されるらしく、またデベロッパー項目が復活します。
なんかいい対応方法ないのかなぁ…。と言うかSpotlightにちゃんと設定項目として表示してくんないかなぁ…。


参考:
10.7: Remove the Developer category from Spotlight results
Spotlight 'developer' and 'Web searches' can't be disabled?

4
4
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4