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 found that:
1) stopping Yojimbo
2) deleting the
/Users/<USER>/Library/Caches/Metadata/
com.barebones.yojimbo
directory
3) Start Yojimbo
Recreated the spotlight index for Yojimbo which was the problem in my
case and that things worked as expected then. My Yojimbo library is
about 600 items, so this was quick, your milage may vary.
I am NOT sure if the above is a guaranteed way of getting spotlight
100% correct, but it seemed to work for me.
Doug
On 01/04/2008, at 23:48, Steven Huey wrote:
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
--
Douglas Stetner stetner AT stetner
DOT org
"We already did this function." - Apple MPW C Compiler
--
------------------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <yojimbo-talk@barebones.com>.
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives: <http://www.listsearch.com/yojimbotalk.lasso>
Have a feature request, or not sure if the software's working
correctly? Please send mail to: <[EMAIL PROTECTED]>