Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › Leopard 10.5 › Modifying Property Lists (plist) via Terminal
8,234 reads · 2009-01-05
Report Leopard 10.5

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

Author Update #1 @lanceomni 2009-01-05

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

Field Note #1 @Voyn1x 2009-01-05

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

Field Note #2 @eMatoS 2009-01-05

Sorry I have no clue on how to do that with the terminal, my advice, try PlistEdit Pro.

Corroborated & Participated: @nfoav8or
Sources & Contributor Provenance (4 credited usernames · Thread #1875)
UsernameDossier ContributionDispatchesActive Window
@lanceomniPrimary Author22009-01-05
@Voyn1xContributor12009-01-05
@nfoav8orContributor12009-01-05
@eMatoSContributor12009-01-05