> 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
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.