Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set an item in a .plist with PlistBuddy?

Tags:

unix

plist

I'm having trouble tracing through a .plist with PlistBuddy and change it in the command line, I know the format is similar to, "/usr/libexec/PlistBuddy -c "Set :items:2:assets: www.test.com" ./Test.plist" But I keep getting an error of Does not Exist. What would the path be to change url?

<dict>
  <key>items</key>
  <array>
    <dict>
    <key>assets</key>
    <array>
      <dict>
        <key>kind</key>
        <string>software-package</string>
        <key>url</key>
like image 663
TUbill Avatar asked Jun 19 '13 15:06

TUbill


1 Answers

You can use :items:0:assets:0:url

like image 106
escrafford Avatar answered Nov 15 '22 05:11

escrafford