On the Yojimbo mailing list, Dylan Damian shared two applescripts that help to integrate the new tagging feature of Yojimbo 1.3 with del.icio.us and NetNewsWire.
They use pukka
to tag a URL in either Safari or NetNewsWire, post the link to del.ico.us and then create a web archive of the page in Yojimbo complete with the same tags.
For example, if you run the first script (tip: make a Quicksilver trigger for it) when viewing a web page in Safari, it launches pukka.
Tag the page with your chosen del.icio.us tags, and submit the page.
Pukka posts the URL to del.icio.us for you and then the script creates a web archive of the page in Yojimbo with the same tags.
Yojimbo becomes in effect, an off-line backup for your del.icio.us links.
The second script does the same thing from NetNewsWire.
In a nice additional touch, the scripts get Growl to tell you that they have done their job.
It’s all very clever and works a treat.
You can get the text of the scripts from Dylan’s post in the Yojimbo mailing list archive
or just grab the two scripts here (PukkaAndYojimbo.zip).
They are easiest to use (I think) if you place them in the Safari and NetNewsWire folders in your ~/Library/Scripts/Application directory. Unless you are partial to NetNewsWire’s own Script menu, in which case you are looking for
[Big hat-tips to Dylan]
Tags: "delic.io.us", applescript, NetNewsWire, not apple mail, not mail.app, pukka, tags, URLs, web archives, yojimbo
This is great. I was talking with John Gruber of Daring Fireball, who is a big Yojimbo fan, and he and I were both hoping to see some scripting integration of Yojimbo and Pukka in the near future. Glad to see it spring out of someone’s need.
… and partly possible because of the care taken in coding pukka, so thanks for that!
mmm.
Am I the only one who get an “untitled” item in Yojimbo?
the taging works, but I get no name title.
O well…
This looks exactly like what I’ve been looking for! BUT — I can’t get it to work :-( Maybe you guys can help me out.
I have Pukka and it works. I’ve downloaded the scripts and designated QS triggers. When I invoke the script while browsing, Pukka comes up and submits the bookmark to del.icio.us as expected, but absolutely nothing happens to Yojimbo. Nothings gets added, no error message, nothing. Any thoughts?
I have the same problem as Patrick. Pukka posts to del.icio.us, but it doesn’t archive to Yojimbo. No growl message is ever shown. Anyone have a fix for this?
Well, I figured out a work-around. Dylan states in his post that “If the Pukka window loses focus or is cancelled, the webarchive
will still be created in Yojimbo but without tags, thus explaining sickbar’s problem. But while he states “Pukka must be configured with “Hide
after posting/Hide after submit” enabled in Preferences,” I have found that for some reason those options need to de disabled and hide when inactive needs to be set. Furthermore, the link window in pukka needs to be closed or hidden, not minimized, after Pukka posts the link to del.icio.us. That, at least, seems to work for me…
Currently, AppleScripting in Pukka requires that the window be visible, as it is basically a front end to manipulating the interface manually. This should change, soon, though, with a more robust scripting model. Sorry for the confusion.
I made a simple tweak to the script so it would save to Yojimbo as a bookmark, not an archive. I don’t really need an archive of every link I want to save for later. I prefer to use Archive for items I will definitely want to refer to offline.
tell application "Yojimbo"
set newItem to make new bookmark item with properties
{name:myTitle, location:myURL}
add tags myTags to newItem
end tell
Could also add in the ability to save out the description as a comment in Yojimbo. Anyway, this is working for me. Thanks for the script!
Hi,
Is it possible to make it work from an other browser than Safari? I tried to open the script and changed “Safari” in “Flock”, my default browser, but it doesn’t want to save my change… As I’m not an applescript geek, I don’t know what I made wrong… can you help me?
[...] bietet es sich an, diese gleichzeitig auch in Yojimbo zu sammeln. Dazu habe ich das bekannte Skript, das Pukka verwendet, so abgewandelt, dass es kein Web-Archiv sondern ein Lesezeichen in Yojimbo [...]