1

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?

danielbeard
  • 9,120
  • 3
  • 44
  • 58
user3541125
  • 451
  • 2
  • 5
  • 11

1 Answers1

0

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.

hd1
  • 33,938
  • 5
  • 80
  • 91