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…
- Primary Author
- @lanceomni Published 2009-01-05
- Collection
- Leopard 10.5
- Archival Footprint
- 8,234 historical reads · 2 curated field notes (from 5 dispatches) · 2009-01-05
- Credited Voices (4)
- @lanceomni (2)@Voyn1x@nfoav8or@eMatoS
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/
Author Updates & Technical Revisions
Follow-up dispatches by @lanceomni
Yeah I use Smultron tup pis.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.
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.
Synthesized Community Field Notes
2 technical responses curated from 5 original dispatches
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
Sorry I have no clue on how to do that with the terminal, my advice, try PlistEdit Pro.
Sources & Contributor Provenance (4 credited usernames · Thread #1875)
| Username | Dossier Contribution | Dispatches | Active Window |
|---|---|---|---|
| @lanceomni | Primary Author | 2 | 2009-01-05 |
| @Voyn1x | Contributor | 1 | 2009-01-05 |
| @nfoav8or | Contributor | 1 | 2009-01-05 |
| @eMatoS | Contributor | 1 | 2009-01-05 |