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 kind:yojimbo item
3. List all the tags whose "count" was 0 as returned from the mdfind
command
Doug provided an example where he had a note tagged as "backup", and
yet the mdfind command was returning a count of 0 for that note. He re-
added the tag and the mdfind command then returned a non-zero count,
as expected.
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?
Thanks,
Steve
From: Douglas Stetner <[EMAIL PROTECTED]>
Date: March 30, 2008 6:42:09 AM EDT
Subject: Re: [ANN] Yojimbo Tag Cleanup
Steven,
I have posted you an example of it incorrectly showing a used tag as
deletable.
On 28/03/2008, at 07:35, Steven Huey wrote:
I just posted a simple app that displays a list of your Yojimbo
tags that aren't assigned to any of your Yojimbo database items,
and then lets you delete those tags. It's kind of a hack, and is a
mix of Cocoa, AppleScript, and some calls to mdfind using NSTask,
but it works well for me and saves a lot of time compared to how I
used to do it by hand.
--
Steven Huey Software - http://www.stevenhuey.com