InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 01-05-2009, 08:47 PM
lanceomni's Avatar
lanceomni lanceomni is offline
 
Join Date: Nov 2008
Location: Florida, US
Posts: 521
Question 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
Reply With Quote
  #2  
Old 01-05-2009, 09:10 PM
Voyn1x's Avatar
Voyn1x Voyn1x is offline
 
Join Date: Jan 2008
Location: United Kingdom
Posts: 554
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
Reply With Quote
  #3  
Old 01-05-2009, 09:17 PM
nfoav8or's Avatar
nfoav8or nfoav8or is offline
 
Join Date: Jan 2008
Location: WA, USA
Posts: 933
or BBEdit so you keep the file permissions...

Reply With Quote
  #4  
Old 01-05-2009, 09:19 PM
eMatoS's Avatar
eMatoS eMatoS is offline
 
Join Date: Jan 2008
Location: Argentina
Posts: 185
Sorry I have no clue on how to do that with the terminal, my advice, try PlistEdit Pro.
Reply With Quote
  #5  
Old 01-05-2009, 09:26 PM
lanceomni's Avatar
lanceomni lanceomni is offline
 
Join Date: Nov 2008
Location: Florida, US
Posts: 521
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 was hoping for something similar to remove all strings. I was thinking if I could do that I could create an action to do it with a single click or part of an end of the month maintenance work flow Ive set up with Automator.

I am researching the "defaults" command right now to see if I can find my answer.



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.


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
Reply With Quote
Reply