【发布时间】:2014-07-14 03:28:11
【问题描述】:
如何添加
<key>NSUIElement</key>
<string>1</string>
到使用applescript 或终端的info.plist 文件?或者有没有其他方法可以自动将应用程序变成守护进程?
【问题讨论】:
标签: shell daemon info.plist
如何添加
<key>NSUIElement</key>
<string>1</string>
到使用applescript 或终端的info.plist 文件?或者有没有其他方法可以自动将应用程序变成守护进程?
【问题讨论】:
标签: shell daemon info.plist
plutil -convert text /Info.plist/file/location 会将文件从二进制格式转换为就地文本,然后您可以从中添加新的键和值。该命令还有其他选项,但我不知道如何让 -insert 或 -replace 在 Mavericks 上工作。如果有人这样做,请随时编辑此答案或发表评论,我会对其进行编辑。
【讨论】: