【问题标题】:OS X shell script to add/remove App extension用于添加/删除应用扩展的 OS X shell 脚本
【发布时间】:2015-05-25 12:23:07
【问题描述】:

我正在为我的应用程序创建一个 FinderSync 扩展,就像 Dropbox 一样。现在我需要以编程方式从 Extensions(在系统首选项中)注册和取消注册这个扩展。 Dropbox 在最近的版本中实现了这个功能。

如何使用 applescipt 动态注销和注册扩展。

【问题讨论】:

    标签: objective-c macos shell dropbox ios-app-extension


    【解决方案1】:

    在 shell 上尝试 pluginkit(.sh 脚本)

    # add it to DB.
    pluginkit -a  "/Applications/YourApp.app/Contents/PlugIns/FinderSyncExt.appex/"
    # enable it
    pluginkit -e use -i com.your-application.FinderSyncExt
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-03
      • 2021-06-17
      • 1970-01-01
      • 2017-01-09
      • 2021-02-21
      • 1970-01-01
      • 2012-08-22
      • 1970-01-01
      相关资源
      最近更新 更多