• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating Plists / How is the <data> value generated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating Plists / How is the <data> value generated?


  • Subject: Re: Creating Plists / How is the <data> value generated?
  • From: "aaron smith" <email@hidden>
  • Date: Sat, 15 Sep 2007 14:19:01 -0700

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?

Anymore ideas?

Thanks much





On 9/15/07, Shantonu Sen <email@hidden> wrote:
You can get more information about this at < http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Articles/XMLPListsConcept.html#//apple_ref/doc/uid/20001011>

Specifically:
Data bytes are base-64 encoded between the <data> and </data>  tags.

This is not an endorsement to to edit preferences of system frameworks manually without using the proper supported API (or requesting API if none exists).

Shantonu

On Sep 15, 2007, at 1:48 PM, aaron smith wrote:

I'm looking for what is used to generate the <data> values in plist's. For example. if you check "Open with rosetta" from an Application's "get info". It puts an entry in com.apple.LaunchServices.plist under LSPrefsFatApplications. What is it putting in the <data> field?

If you use plutil to convert the file to xml, you'll see some sort of hash. Where can I find out how that is generated, or some more resources?

I've been doing some research and know that the <data> represents a CFData object, but what in this case is creating the values in this situation?

Sorry if this isn't the right list, I can't find just the right place to be asking this..

-Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (


 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating Plists / How is the <data> value generated?
      • From: Anton Altaparmakov <email@hidden>
    • Re: Creating Plists / How is the <data> value generated?
      • From: Shantonu Sen <email@hidden>
References: 
 >Creating Plists / How is the <data> value generated? (From: "aaron smith" <email@hidden>)
 >Re: Creating Plists / How is the <data> value generated? (From: Shantonu Sen <email@hidden>)

  • Prev by Date: Re: Creating Plists / How is the <data> value generated?
  • Next by Date: Re: Creating Plists / How is the <data> value generated?
  • Previous by thread: Re: Creating Plists / How is the <data> value generated?
  • Next by thread: Re: Creating Plists / How is the <data> value generated?
  • Index(es):
    • Date
    • Thread