有什么比使用RCDefaultApp或Magic Launch更方便的,或者只是重复按下 Finder 信息面板中的“全部更改”按钮?
我想写一个 shell 脚本来修改 Info.plist 文件中的 CFBundleDocumentTypes 数组。但是每个应用程序都有多个需要更改的键(有时是一个图标)。
lsregister
不能用于对启动服务数据库进行特定修改。
$ `locate lsregister` -h
lsregister: [OPTIONS] [ <path>... ]
[ -apps <domain>[,domain]... ]
[ -libs <domain>[,domain]... ]
[ -all <domain>[,domain]... ]
Paths are searched for applications to register with the Launch Service database.
Valid domains are "system", "local", "network" and "user". Domains can also
be specified using only the first letter.
-kill Reset the Launch Services database before doing anything else
-seed If …
Run Code Online (Sandbox Code Playgroud) macos ×1