Sponsored Content
Operating Systems OS X (Apple) the best way of editing .plist files Post 302160346 by PxT on Monday 21st of January 2008 05:46:39 PM
Old 01-21-2008
Use the 'defaults' command which is included with the OS, or the GUI Property List Editor which comes with the Developers toolkit. If you are on Leopard there is also a tool called PlistBuddy.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using defaults read to get value from plist

Hi there, I'm trying to retrieve a value from a plist file, which I have done before with no problems, however this plist file looks a little different.... Normally it's like this; <plist version="1.0"> <dict> key>KeyName</key> <string>blah</string> I want the value of KeyName, so... (1 Reply)
Discussion started by: davewg
1 Replies

2. UNIX for Dummies Questions & Answers

max os x .plist not running as scheduled?

Hello all, I am admittedly a newbie and have created a plist designed to fire off a shell script everyday at 3:00pm. It is located in /Library/LaunchDaemons/. I use it to mirror a hard local drive with a remote one. It worked one time but not again after that. I never restart the machine... (0 Replies)
Discussion started by: Movomito
0 Replies

3. Shell Programming and Scripting

editing files

Is there any command which I can apply from the command line to find and replace a particular text say "00:00:00:00" with "00" from all the files( where ever this text exists) of the current directory? (17 Replies)
Discussion started by: cobroraj
17 Replies

4. Shell Programming and Scripting

Editing files to add some thing in all the files in a folder

Hi All, I have a folder that contains 100's of files and each file have a similar content like the following format: ((STBJa:200.0,((STBTz:200.0,(STSwe:200.0,(STDUw:200.0,(ST4Bu:200.0,STL2b:200.0):127.0):86.0):80.0):120.0, STAHr:200.0):134.0):200.0,STuNg:200.0);What I need is to do is add "#1"... (2 Replies)
Discussion started by: Lucky Ali
2 Replies

5. OS X (Apple)

Plist to Unix Executable

I'm using an old conversion method for converting a plist into an XML file, but that's not what I'm needing just via terminal now. What I'm looking for is an answer to convert a plist file into an executable. I'd like to import it into Casper and have the JSS push it out onto an image. In this... (6 Replies)
Discussion started by: unimachead
6 Replies

6. Shell Programming and Scripting

Parsing plist file ?

Hi, I wondered if it was possible to parse a plist file like this http://dl.dropbox.com/u/14586156/stuff/Bookmarks.plist so it will afterwards look like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"... (0 Replies)
Discussion started by: pasc
0 Replies

7. Shell Programming and Scripting

editing files.

hello, i have a problem. suppose file.txt i want to add lines over those lines in a file if it starts and ends with how and "?" respectively. i want output like output file.txt thanks (4 Replies)
Discussion started by: yashwantkumar
4 Replies

8. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies

9. UNIX for Dummies Questions & Answers

Editing files

This is a smallpart of my input file.I want to change the ID values of entries having CMW as an entry. Cont_1.266 . CMW 2958 3269 . - 0 PARENT=t:UM06506T0;ID=UM06506P0;rank=6 Cont_1.266 . CMW 3394 3505 . - 0 ... (3 Replies)
Discussion started by: sasdf
3 Replies
Property List(3m17n)						 The m17n Library					      Property List(3m17n)

NAME
Property_List - Property List objects and API for them. Typedefs typedef struct MPlist MPlist Type of property list objects. Functions MPlist * mplist_deserialize (MText *mt) Generate a property list by deserializing an M-text. MPlist * mplist (void) Create a property list object. MPlist * mplist_copy (MPlist *plist) Copy a property list. MPlist * mplist_put (MPlist *plist, MSymbol key, void *val) Set the value of a property in a property list. void * mplist_get (MPlist *plist, MSymbol key) Get the value of a property in a property list. MPlist * mplist_put_func (MPlist *plist, MSymbol key, M17NFunc func) Set the value (function pointer) of a property in a property list. M17NFunc mplist_get_func (MPlist *plist, MSymbol key) Get the value (function pointer) of a property in a property list. MPlist * mplist_add (MPlist *plist, MSymbol key, void *val) Add a property at the end of a property list. MPlist * mplist_push (MPlist *plist, MSymbol key, void *val) Add a property at the beginning of a property list. void * mplist_pop (MPlist *plist) Remove a property at the beginning of a property list. MPlist * mplist_find_by_key (MPlist *plist, MSymbol key) Find a property of a specific key in a property list. MPlist * mplist_find_by_value (MPlist *plist, void *val) Find a property of a specific value in a property list. MPlist * mplist_next (MPlist *plist) Return the next sublist of a property list. MPlist * mplist_set (MPlist *plist, MSymbol key, void *val) Set the first property in a property list. int mplist_length (MPlist *plist) Return the length of a property list. MSymbol mplist_key (MPlist *plist) Return the key of the first property in a property list. void * mplist_value (MPlist *plist) Return the value of the first property in a property list. Variables MSymbol Minteger Symbol whose name is 'integer'. MSymbol Mplist Symbol whose name is 'plist'. MSymbol Mtext Symbol whose name is 'mtext'. Detailed Description Property List objects and API for them. A property list (or plist for short) is a list of zero or more properties. A property consists of a key and a value, where key is a symbol and value is anything that can be cast to (void *). If the key of a property is a managing key, its value is a managed object. A property list itself is a managed objects. If each key of a plist is one of Msymbol, Mtext, Minteger, and Mplist, the plist is called as well-formed and represented by the following notation in the documentation. PLIST ::= '(' ELEMENT * ')' ELEMENT ::= INTEGER | SYMBOL | M-TEXT | PLIST M-TEXT ::= '"' text data ... '"' For instance, if a plist has four elements; integer -20, symbol of name 'sym', M-text of contents 'abc', and plist of integer 10 and symbol of name 'another-symbol', it is represented as this: (-20 sym 'abc' (10 another-symbol)) Typedef Documentation typedef struct MPlist MPlist Type of property list objects. The type MPlist is for a property list object. Its internal structure is concealed from application programs. Variable Documentation MSymbol Minteger Symbol whose name is 'integer'. The symbol Minteger has the name 'integer'. The value of a property whose key is Minteger must be an integer. MSymbol Mplist Symbol whose name is 'plist'. The symbol Mplist has the name 'plist'. It is a managing key. A value of a property whose key is Mplist must be a plist. MSymbol Mtext Symbol whose name is 'mtext'. The symbol Mtext has the name 'mtext'. It is a managing key. A value of a property whose key is Mtext must be an M-text. Author Generated automatically by Doxygen for The m17n Library from the source code. COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA) Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST) Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>. Version 1.6.2 12 Jan 2011 Property List(3m17n)
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy