Re: Reading nested key-value pairs in plist
Re: Reading nested key-value pairs in plist
- Subject: Re: Reading nested key-value pairs in plist
- From: Paul Richardson <email@hidden>
- Date: Wed, 18 Dec 2002 18:25:03 +0100
On Mittwoch, 18. Dezember 2002 16:25:53 Uhr, Reinhold Penner wrote:
>
I would also settle for a construct that would access the next line
>
of the grep example shown above
Reinhold,
it's maybe a small step, but the -C flag on grep will give you the next line:
do shell script "defaults read com.apple.internetconfig 'Version 2.5.3' | grep -C 'DownloadFolder'"
--> " };
CookieDownloadPrefs = {\"ic-data\" = <00030000 ba250e02 0001>; };
DownloadFolder = {
\"ic-data\" = <0942616c 7468617a 61720000 00000001 01000000 00280000 00050100 03bb03bb 7c25bfa3 ff9c0000 80800944 6f776e6c 6f616473 00000003 01000000 00000000 00010100 03d900c8 00000004 01006e6c 6f616473 a1b1c1d3 00000000 03f8d9f0 03f8da30 00000000 00000000 00000136 00020001 0942616c 7468617a 61720000 00000000 00000000 00000000 00000000 7c25bfa3 482b0000 00008080 09446f77 6e6c6f61 64730000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000085ad b8469113 003e000e 02c00282 ffffffff 00000120 00000000 00000000 00000000 00000003 706c7200 00100008 00007c25 b1930000 00110008 0000b846 83030000 00010008 00008080 00097f35 0002001d 42616c74 68617a61 723a5573 6572733a 706c723a 446f776e 6c6f6164 7300000e 00140009 0044006f 0077006e 006c006f 00610064 0073000f 00140009 00420061 006c0074 00680061 007a0061 00720012 00135573 6572732f 706c722f 446f776e 6c6f6164 73000013 00012f00 ffff0000 >;
}; "
HTH
--
Paul
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.