I debugged this a bit with Doug's help and it appears his Spotlight index was out of sync with Yojimbo. Yojimbo Tag Cleanup basically does the following: 1. Using AppleScript asks Yojimbo for a list of all tags 2. For each tag it calls the mdfind command as: mdfind -count keyword:TAG
Steve, thanks for letting me know how it worked which showed what my problem was. I had wanted to be sure nobody deleted a tag that was in use, and as Steve says, it was really a spotlight index problem. That said, the spotlight index *can* be wrong and cause you to remove a good tag. I
Other than iterating through each database item using AppleScript and searching manually through it's list of tags to find abandoned tags, does anyone have any other AppleScript suggestions for how to find unused tags? Or any ideas why his Spotlight index wasn't up to date with Yojimbo's tags?
Steve, That works perfectly - thanks! I'll update the app to use that instead of mdfind. I'll send out another announcement when I've got it running. - Steve On Apr 1, 2008, at 10:12 AM, Steve Kalkwarf wrote: Other than iterating through each database item using AppleScript and searching
I just released Yojimbo Tag Cleanup 1.1 that uses the AppleScript Steve Kalkwarf provided for finding abandoned tags instead of the mdfind command. If you downloaded 1.0, I really recommend downloading the new version since it's much more reliable. Thanks again to Doug Stetner and Steve