• 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: Is There No Limit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is There No Limit?


  • Subject: Re: Is There No Limit?
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 18 Mar 2012 23:41:30 +0100

Le 18 mars 2012 à 23:16, Shane Stanley a écrit :

> On 19/03/2012, at 2:03 AM, Axel Luttgens wrote:
>
>> 	do shell script "/usr/bin/mdls -raw -name kMDItemFinderComment ~/Desktop/a.txt"
>
> I don't think that command is actually reading the Finder comments. I'm pretty sure the comments live as attributes in the file's resources file, and presumably a Spotlight import filter then reads them into the Spotlight database where can be used for Spotlight searches. So I think what you're seeing is a limitation on either the filter, or (more probably) the Spotlight database.

There is no such limitation since the mdls command returns the full string of 10000 "a" characters.
And there is no resource fork involved here, since a
	ls -l ~/Desktop/a.txt/..namedfork/rsrc
clearly shows a zero length.

What I tried to explain is that the Finder doesn't care of anything else than the .DS_Store file; once it encounters a problem with that file, it chokes.


> Try your test again using xattr and a key of com.apple.metadata:kMDItemFinderComment.

Yes, this returns the raw comment as a bplist.
Just another view of the same data.

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:
    • Re: Is There No Limit?
      • From: Axel Luttgens <email@hidden>
References: 
 >Is There No Limit? (From: Luther Fuller <email@hidden>)
 >Re: Is There No Limit? (From: Axel Luttgens <email@hidden>)
 >Re: Is There No Limit? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Is There No Limit?
  • Next by Date: Re: Is There No Limit?
  • Previous by thread: Re: Is There No Limit?
  • Next by thread: Re: Is There No Limit?
  • Index(es):
    • Date
    • Thread