Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Spotlight Metadata



Le 2 nov. 2009 à 17:41, Hagimeno a écrit :

Hi,

even is is not true AS question (but is related to) how is possible to add a metadata to a file with integer or real value?

This command that can be invoked with do shell script works:

xattr -w com.apple.metadata:myName iPhone /Users/alex/Desktop/ hello.txt

using mdls /Users/alex/Desktop/hello.txt you can see the new metadata named myName as string

But I cannot find the way to add for example another metadata as int or real or number.

Steve

Hello Steve,

Are you thinking about attributes with binary instead of textual values?
If you've a sample file with such attributes, perhaps could you have a look at it with
xattr -p -x <attrname> <filepath>
and then try to create the wanted hex string and write it back with
xattr -w -x <attrname> <attrvalue> <filepath>


HTH,
Axel _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Adding Spotlight Metadata (From: Hagimeno <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.