Re: Creating Plists / How is the <data> value generated?
Re: Creating Plists / How is the <data> value generated?
- Subject: Re: Creating Plists / How is the <data> value generated?
- From: Anton Altaparmakov <email@hidden>
- Date: Sat, 15 Sep 2007 22:31:45 +0100
Hi,
On 15 Sep 2007, at 22:19, aaron smith wrote:
Thanks for the reply, let me pick your braina little farther.
Take this for example:
<key>org.mozilla.firefox</key>
<array>
<data>
AAAAAACiAAMAAQAAwXGNSQAASCsAAAAAAAAAFgAH3LUAAMGaoMwA
AAAACSD//gAAAAAAAAAA/////wABAAQAAAAWAA4AGAALAEYAaQBy
AGUAZgBvAHgALgBhAHAAcAAPABoADABNAGEAYwBpAG4AdABvAHMA
aAAgAEgARAASABhBcHBsaWNhdGlvbnMvRmlyZWZveC5hcHAAEwAB
LwD//wAA
</data>
</array>
This is what is put in that file I mentioned in my first email.
I've tried doing something like:
Base64.encode64('org.mozilla.firefox') #ruby
Which ends up being: b3JnLm1vemlsbGEuZmlyZWZveA==
So my question then becomes, what else is happening to generate
this huge hash?
Er. You haven't gotten the point. The key is org.mozilla.firefox
and the data associated with it is the data bit and that bit is
base64 encoded so you need to decode that! Doing that with an online
decode I just found with google (http://makcoder.sourceforge.net/demo/
base64.php) I get:
<quote>
¢ÁqIH+ܵÁš Ì ÿþÿÿÿÿFirefox.appMacintosh
HDApplications/Firefox.app/ÿÿ
</quote>
So it is some binary data that I don't understand together with a
textual description and path...
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden