• 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: Adding Spotlight Metadata
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • to open a bundle to see the contents
      • From: Ronald Hofmann <email@hidden>
References: 
 >Adding Spotlight Metadata (From: Hagimeno <email@hidden>)

  • Prev by Date: Preserve file info comment when sending a file from a Mac to Windows and the other way around
  • Next by Date: Re: system info delay
  • Previous by thread: Adding Spotlight Metadata
  • Next by thread: to open a bundle to see the contents
  • Index(es):
    • Date
    • Thread