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

Similar Threads
thread Thread Starter Forum Replies Last Post
Apple script batch shell script prramesh Mac Programming 5 Sep 15, 2013 03:35 AM
AudioScope.sh shell script... wisecracker MacBook Pro 0 Jul 31, 2013 01:31 PM
Anyone know how to use AppleScript or shell-script? gba2000 Mac Applications and Mac App Store 0 Apr 23, 2013 11:14 AM
How to create a shell script and run it? Killwin98 Mac Programming 3 Mar 18, 2013 06:39 PM
Need help with a shell script thatgreenvw Mac Programming 1 Nov 30, 2012 07:55 AM

Forum Jump

All times are GMT -5. The time now is 05:19 AM.

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

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