开发者

How can I change the default editor for OS X on install?

开发者 https://www.devze.com 2022-12-11 20:17 出处:网络
I\'m setting up an app to install on OS X. Previous versions of this app have been installed, and have associated a file type to open with the app in the Info.plist file in the app bundle. I have the

I'm setting up an app to install on OS X. Previous versions of this app have been installed, and have associated a file type to open with the app in the Info.plist file in the app bundle. I have the same associations in the Info.plist for the new version of the app. I'd like to change the default app on install to use the new version without requ开发者_如何学运维iring the user to un-install their old version, or manually change the association in the Open With... dialog.

Is this possible, to somehow register my app to now be the default edtior for this filetype, even when a default editor exists?

It's just for a file type specific to the app, so I don't think it'd be annoying or unethical to change the association when I install the new app.


I'm not sure if RCDefaultApp works in snow leopard, but I know I've used it in older versions of os x.

A nice blog entry about it can be found here as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消