MAC OS X 清除右键“打开方式“中的多余的菜单项

Resetting the 'Open With' Menu

Resetting the 'Open With' menu will remove duplicates and ghost applications (ones you have deleted) from the list. You reset the 'Open With' menu by rebuilding the Launch Services database your Mac maintains. There are multiple ways to rebuild the Launch Services database, including third-party system utilities like Cocktail andOnxy.

If you don't own a system utility that can rebuild the Launch Services database, don't worry; you can perform the rebuild yourself using Terminal.

Using Terminal to Rebuild the Launch Services Database

Launch Terminal, located at /Applications/ Utilities/.

For OS X 10.5.x and later, enter the following at the Terminal prompt:

在终端中键入下列命令(将下面的路径整个拷贝或进入Support目录下):

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

For OS X 10.3.x - 10.4.x, enter the following at the Terminal prompt:

/System/Library/Frameworks/ApplicationServices.framework/\Frameworks/LaunchServices.framework/Support/lsregister \-kill -r -domain local -domain system -domain user

The above is one command and is entered on a single line. You can simply copy/paste the above command into Terminal, then press Return/Enter to execute the command.

The rebuild process can take a minute or two. Once the Terminal prompt returns, you can quit Terminal.

Now when you use the 'Open With' menu, you should see an application list that's limited to the applications currently installed on your Mac, with no duplicates or ghosts.

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值