欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

重建索引 reset_index_needs_administrator.command 自己亲自做的 有大用 有大大用 有大大大用

#!/bin/bash
#
sudo mdutil -i off /
sudo mdutil -E /
sudo mdutil -i on /
(/usr/bin/osascript -e  'display dialog "已开始重建索引,若要完全生效,可能需要几十分钟至几个小时的时间!" buttons {"OK"} default button "OK" with title "重建索引" ')


普通分类: