Removing Duplicates?

39 views
Skip to first unread message

bradsaun

unread,
Nov 8, 2009, 2:21:00 PM11/8/09
to Yojimbo Talk
Just registered Yojimbo after choosing it over SOHO notes.
Just one thing is annoying me - after importing tons of notes I have
some duplicate entries which I'd like to zap (one feature that SOHO
offered).
Can't seem to find a way to do this.
Any advice?

radarseven

unread,
Nov 17, 2009, 2:14:29 PM11/17/09
to Yojimbo Talk
Would love to know if there is an easy way to remove duplicates as
well.
Accidentally imported a bunch of links that were already in my
library.
Can't "Undo" and can't remove duplicates. A little frustrating.

Steve Kalkwarf

unread,
Nov 17, 2009, 2:48:57 PM11/17/09
to yojimb...@googlegroups.com
On Nov 17, 2009, at 2:14 PM, radarseven wrote:

> Would love to know if there is an easy way to remove duplicates as
> well.
> Accidentally imported a bunch of links that were already in my
> library.
> Can't "Undo" and can't remove duplicates. A little frustrating.

Undo should have worked, as long as Yojimbo was left running between the "add" and the undo.

Yojimbo has no notion of "duplicate", as every item added to Yojimbo is its own unique entity, and doesn't refer to files on disk or other information sources.

Here's a script that might help you out:

tell application "Yojimbo"
set tc to make new tag collection with properties {name:"Duplicates"}
add tags "duplicate" to tc

set all_links to every bookmark item
repeat with a_link in all_links
set a_location to location of a_link
set similar_links to (every bookmark item whose location is a_location)
set similar_count to (count of similar_links)
if similar_count is not 1 then
repeat similar_count - 1 times
set target_item to last item of similar_links
tell target_item to add tags "duplicate"
end repeat
end if
end repeat
end tell

Steve

chris

unread,
Jan 7, 2010, 11:55:18 AM1/7/10
to Yojimbo Talk
This Applescript worked perfectly for me, thanks for sharing it. I'm
evaluating Yojimbo and this just saved me from myself!

On Nov 17 2009, 2:48 pm, Steve Kalkwarf <kalkw...@barebones.com>
wrote:


> On Nov 17, 2009, at 2:14 PM, radarseven wrote:
>
> > Would love to know if there is an easy way to removeduplicatesas
> > well.
> > Accidentally imported a bunch of links that were already in my
> > library.

> > Can't "Undo" and can't removeduplicates. A little frustrating.

Reply all
Reply to author
Forward
0 new messages