James Webster Finding existing web archive items in Yojimbo 1.4 via AppleScript
Jan 10, 2007; 03:46
James Webster
Finding existing web archive items in Yojimbo 1.4 via AppleScript
Hello,
I am working on my own variant of a del.icio.us import AppleScript into Yojimbo, using the extended scripting features of the latest version. I am trying to identify if a web archive already exists for a given URL using the following...
set post_description to "Some description" set post_url to "http://someurl" tell application "Yojimbo" if not (exists web archive item post_description) and not (exists web archive item post_url) then make new web archive item with contents post_url end if end tell
The above fragment is actually in a loop where my various del.icio.us posts are retrieved, etc. I find it works brilliantly the first time, importing all my existing del.icio.us bookmarks as web archives. However, the second time I run it, it incorrectly identifies about a quarter of the bookmarks as not already existing, hence duplicates are created. Subsequent runs also fail to correctly identify URLs/ descriptions that have already been imported.
It is unclear from the Yojimbo AppleScript dictionary exactly which field of a web archive item the 'exists' operator matches again, although maybe this can be defined. It is my first attempt at a largish AppleScript so I might have gotten something wrong (FYI, I am otherwise an experienced Java developer).
Cheers, James W.
-- James Webster SA Fin blog: http://www.thenewsbeforethenews.com photos: http://flickr.com/ photos/jim
Jan 10
Jim Correia Re: Finding existing web archive items in Yojimbo 1.4 via AppleScript
Jan 10, 2007; 03:59
Jim Correia
Re: Finding existing web archive items in Yojimbo 1.4 via AppleScript
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!