How can I add
<key>NSUIElement</key>
<string>1</string>
to an info.plist file using applescript or terminal? Or is there another way to automatically make an application into a daemon?
How can I add
<key>NSUIElement</key>
<string>1</string>
to an info.plist file using applescript or terminal? Or is there another way to automatically make an application into a daemon?
plutil -convert text /Info.plist/file/location
will convert the file from binary format to text in-place, from which you can then add your new key and value. The command has other options, but I couldn't figure out how to get -insert
or -replace
working on Mavericks. If someone does, feel free to edit this answer or leave a comment and I'll edit it.