Re: Is There No Limit?
Re: Is There No Limit?
- Subject: Re: Is There No Limit?
- From: Ron Hunsinger <email@hidden>
- Date: Mon, 19 Mar 2012 20:58:17 -0700
On Mar 19, 2012, at 3:17 PM, Shane Stanley wrote:
> Interesting, thanks. I wonder whether rebuilding the Spotlight db would bring the comment back.
No. Rebuilding the Spotlight database merely causes the comment to be copied, again, from the xattr to the database. It doesn't cause the .DS_Store file to be rebuilt, nor will it cause any comment in .DS_Store to be copied to the xattr.
It's easy enough to write an AppleScript that will ask both Finder and mdls for the comment, and if they differ select the one you prefer (probably the one that's not empty) and tell Finder to set the comment to that. Finder will put it in both .DS_Store and in the xattr, and Spotlight will pick it up from the xattr and copy it to its database, making it consistent in all three places.
-Ron Hunsinger
_______________________________________________
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