Re: Adding Spotlight Metadata
Re: Adding Spotlight Metadata
- Subject: Re: Adding Spotlight Metadata
- From: Axel Luttgens <email@hidden>
- Date: Wed, 4 Nov 2009 15:55:15 +0100
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden