Re: [OT] Plist editor?
Re: [OT] Plist editor?
- Subject: Re: [OT] Plist editor?
- From: Ken Tozier <email@hidden>
- Date: Sat, 22 Jan 2005 03:58:20 -0500
This is just a simple grep search and replace in BBEdit.
Given your example:
CFBundleExecutable: Internet Connect
CFBundleGetInfoString: 1.4
CFBundleIconFile: NetworkConnect.icns
CFBundleIdentifier: com.apple.internetconnect
if you do a grep search for:
(\s*)([^:]+):\s+([^\r]+)\r
And replace it with:
<key>\2</key>\r<string>\3</string>\r
You get:
<key>CFBundleExecutable</key>
<string>Internet Connect</string>
<key>CFBundleGetInfoString</key>
<string>1.4</string>
<key>CFBundleIconFile</key>
<string>NetworkConnect.icns</string>
<key>CFBundleIdentifier</key>
<string>com.apple.internetconnect</string>
Might be worth looking into. Then again if you want the programming
practice...
Ken
On Jan 22, 2005, at 3:37 AM, Abhi Beckert wrote:
I only saw this email as I just subscribed to cocoa-dev again after
being on holiday. But since I've actually been thinking of writing an
open source plist editor, I thought I'd drop in.
My idea is that instead of an outline view, it would convert the plist
into a more simple language than xml for editing, you make your change
and it seemlessly converts it back to xml before saving. So rather
than:
<key>CFBundleExecutable</key>
<string>Internet Connect</string>
<key>CFBundleGetInfoString</key>
<string>1.4</string>
<key>CFBundleIconFile</key>
<string>NetworkConnect.icns</string>
<key>CFBundleIdentifier</key>
<string>com.apple.internetconnect</string>
you'd have:
CFBundleExecutable: Internet Connect
CFBundleGetInfoString: 1.4
CFBundleIconFile: NetworkConnect.icns
CFBundleIdentifier: com.apple.internetconnect
I haven't decieded exactly what the syntax would be or anything, but
you get the idea. Would anyone else like an app like that, or is it
just be me?
- Abhi
On Sat, 22 Jan 2005 09:00:17 +0100, PA <email@hidden>
wrote:
On Fri, 21 Jan 2005 19:29:34 -0500, Ken Tozier
<email@hidden> wrote:
I use BBEdit.
I use TextEdit :P
Once you understand the plist format,
I'm somewhat familiar with the format:
http://alt.textdrive.com/pl/3/pl-the-format
http://alt.textdrive.com/assets/public/PL-ABNF.txt
the PList editor UI just gets in the way.
Well... yes... and no... it depends of what one is doing... in my case
I'm (ab)using plist to write API documentation...
http://alt.textdrive.com/dydoc/
So having a full blown editor would be appreciated :))
In any case, Brian Webster (of PlistEdit Pro fame) mentioned that his
editor might very well provide such an editor "very soon now" :))
http://homepage.mac.com/bwebster/plisteditpro.html
Cheers
--
PA
http://alt.textdrive.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden