Re: Is There No Limit?
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