need help with shell script

Discussion in 'Mac Programming' started by lynkynpark86, Sep 23, 2010.

  1. macrumors 6502

    I am trying to make a simple script to change an application's info.plist file. The application is called Spacesuit, and I want to add "LSUIElement" with a string of "1". The only problem is i don't know how to use defaults write on a plist that is not in the preferences folder. Basicly what I'm asking is what would be the terminal command to edit the plist of an application on the desktop? Please help me with this.
  2. macrumors 604

    Aug 9, 2009
    defaults write ~/Desktop/ LSUIElement 1
  3. thread starter macrumors 6502

    Thanks, I can't believe I didn't think of that. I am used to using defaults write for apple preferences (, etc.), so I forgot I could enter a file path. Thanks again.
  4. macrumors 604

    Aug 9, 2009
    I remember being in the same place. The key thing is "pathnames omit .plist". Otherwise you get path/to/thing/Foo.plist.plist.

Share This Page