Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 23, 2010, 05:52 PM   #1
lynkynpark86
macrumors 6502
 
Join Date: Mar 2010
Location: Maine, USA, Earth, Solar System, Milky Way, Universe
need help with shell script

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.
lynkynpark86 is offline   0 Reply With Quote
Old Sep 23, 2010, 07:21 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
Code:
defaults write ~/Desktop/Spacesuit.app/Contents/Info LSUIElement 1
chown33 is offline   0 Reply With Quote
Old Sep 24, 2010, 12:26 PM   #3
lynkynpark86
Thread Starter
macrumors 6502
 
Join Date: Mar 2010
Location: Maine, USA, Earth, Solar System, Milky Way, Universe
Quote:
Originally Posted by chown33 View Post
Code:
defaults write ~/Desktop/Spacesuit.app/Contents/Info LSUIElement 1
Thanks, I can't believe I didn't think of that. I am used to using defaults write for apple preferences (com.apple.mail, etc.), so I forgot I could enter a file path. Thanks again.
lynkynpark86 is offline   0 Reply With Quote
Old Sep 24, 2010, 12:48 PM   #4
chown33
macrumors 603
 
Join Date: Aug 2009
I remember being in the same place. The key thing is "pathnames omit .plist". Otherwise you get path/to/thing/Foo.plist.plist.
chown33 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Applescript shell script won't run when display is sleeping BlueRevolution Mac Programming 6 Feb 19, 2011 03:11 AM
Need help with apple script to do with creating random numbers! Geoffrey Readin Mac Programming 0 Jan 13, 2011 10:52 AM
Help with shell script to invoke screen capture jammin0 OS X 4 Sep 29, 2010 02:07 PM
Need help with apple script do shell command. coo1man1 Mac Programming 2 Aug 25, 2009 07:17 PM
Need help with bash script - symlink problems Poeben Mac Programming 4 Sep 14, 2007 08:36 PM


All times are GMT -5. The time now is 12:35 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC