Re: tags manipulation
Re: tags manipulation
- Subject: Re: tags manipulation
- From: Shane Stanley <email@hidden>
- Date: Sat, 26 Sep 2015 22:31:22 +1000
On 26 Sep 2015, at 6:25 PM, Shane Stanley <email@hidden> wrote:
Well it was a good theory while it lasted. Let me now do a 180-degree turn: I suspect my script and tag are both returning the correct result. So:
On 25 Sep 2015, at 6:59 PM, Christopher Stone < email@hidden> wrote:
Do I under correctly understand that it should find ALL items tagged 'Red' in my Home folder?
It only finds 18.
A Spotlight search for tag:red in ~/ yields 609 items.
My *guess* is that you have tagged only 18 files Red. I'm guessing that the rest were labeled Red, in the days before Finder tags. And that means they can have no tag listed in the spotlight database, but instead have a kMDItemFSLabel (Finder label) value of 6. And I'm guessing that when you do a tag-based search in the Finder, it's doing something like looking to see if the tag is one of the seven that corresponds to the old Finder labels, and when it sees Red does, it searches for files with either kMDItemUserTags containing Red or a kMDItemFSLabel of 6.
And when you do the tag -m Red -d ~/ search it queries the URLs, which also treat legacy labels as tags.
Would that explain what you see?
If I'm right (this time), the search can be modified to also look for labels where applicable.
|
_______________________________________________
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