|
#1
|
||||
|
||||
Modifying Property Lists (plist) via Terminal
I am familiar with changing values in property lists via the command line. Does anyone know how you can remove all the strings in a particular part?
I use an old version of Capture One Pro and every session you start is saved in a drop down list. Removing them one by one takes some time and you can't move the plist related to Capture One into the trash as it also contains registration/activation information. My option now would be to use Propert List Editor but id like to learn more on modifying plists from the command line. Im trying remove all of the strings in Root/SessionRefList/SessionRefArray/ MOBO: Z77MX-QUO-AOS CPU: Core i7 3770K GPU: MSI N760 TF 2GD5/OC Case: Modded MacPro2,1 Memory: 32GB Corsair Vengeance (CMY32GX3M4A1600C9) Wifi: Airport Extreme bcm94321MCA BIOS: HermitCrab Labs H3A.816M Monitor: AOC Q2963Pm 29" WFHD 2560x1080 21:9 Interests: KDE on Apple Darwin, Keeping it real with the command line, Helping those that help themselves |
#2
|
||||
|
||||
Easiest way is to use a text editor like TextMate or similar. I always use TextMate to edit plists.
Just select the lines and press delete, nice and easy Mac OS X 10.6.4 Retail || Intel Core2 Duo E8200 2.66GHz || Gigabyte G31M-ES2L || GeForce 6600 GT 128MB || Realtek ALC883 Audio || Realtek RTL8169 LAN || Samsung SpinPoint F1 1TB HD || Sony Dual Layer IDE DVD RW DW-D22A || Apple Aluminium Keyboard || Mighty Mouse MacBook Pro || 2.4Ghz Core 2 Duo || 200Gb HD || 2Gb Ram || NVIDIA GeForce 8600M GT iPhone 4 || 16Gb |
#3
|
||||
|
||||
or BBEdit so you keep the file permissions...
|
#4
|
||||
|
||||
Sorry I have no clue on how to do that with the terminal, my advice, try PlistEdit Pro.
|
#5
|
||||
|
||||
Yeah I use Smultron http://tuppis.com/smultron/ which I believe is similar. And Property List Editor does a fine job also.
I was hoping to find out how to do it via command line. Like setting Finder to display hidden files. Code:
defaults write com.apple.Finder AppleShowAllFiles YES I am researching the "defaults" command right now to see if I can find my answer. MOBO: Z77MX-QUO-AOS CPU: Core i7 3770K GPU: MSI N760 TF 2GD5/OC Case: Modded MacPro2,1 Memory: 32GB Corsair Vengeance (CMY32GX3M4A1600C9) Wifi: Airport Extreme bcm94321MCA BIOS: HermitCrab Labs H3A.816M Monitor: AOC Q2963Pm 29" WFHD 2560x1080 21:9 Interests: KDE on Apple Darwin, Keeping it real with the command line, Helping those that help themselves |