Desired: Integration with del.icio.us Firefox extension

General discussions about LaunchBar
drhayes
Posts: 1
Joined: Thu Jan 24, 2008 11:34 pm
Contact:

Post by drhayes » Thu Jan 24, 2008 11:35 pm

I'll add my +1.

A tag-level index of my del.icio.us account would be keen. I'd prefer not to sync del.icio.us into a web browser first.

Great app! ( =

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Mon Feb 25, 2008 7:10 pm

Yea, indexing del.icio.us bookmarks is a feature that would be really handy in LaunchBar.

Sieges
Posts: 5
Joined: Wed Apr 09, 2008 12:44 pm
Location: Norway

Post by Sieges » Thu May 15, 2008 10:28 am

+1 on del.icio.us indexing both for bookmark names and tags. Perhaps a specific sub-menu for tag searching?

Helge
Posts: 1
Joined: Sun May 18, 2008 10:58 pm
Contact:

Post by Helge » Sun May 18, 2008 11:00 pm

+1 on del.icio.us indexing both for bookmark names and tags

hkk
Posts: 2
Joined: Tue Jun 10, 2008 6:20 am

Post by hkk » Tue Jun 10, 2008 6:23 am

I am just giving Launchbar a try after being a long term Quicksilver user. I like it but the del.icio.us integration is one of the key things I am missing too.
The other features I miss most are Triggers (=global shortcuts) and the Clipboard History/Shelf (although I am using PTHPasteboard for that now, which is an okay replacement).

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Tue Jun 10, 2008 10:27 am

Yea, at the moment to get to my del.icio.us bookmarks I'm really liking delimport the Spotlight plug-in http://ianhenderson.org/delimport.html

For a clipboard manager & to activate my scripts, Automator workflows etc. Butler is doing a good job for me.

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Mon Dec 08, 2008 3:04 pm

So it looks like there'll be no Delicious bookmark integration in version 5 then? :(

modoq
Posts: 4
Joined: Fri Oct 10, 2008 10:35 am

found a solution

Post by modoq » Thu Feb 26, 2009 12:03 am

I finally managed to have launchbar automatically index all my delicious bookmarks including tags. I'm not using the bookmark file that is saved by the delicious firefox plugin. Instead I download *all* bookmarks directly via the export feature of delicious and convert them to a launchbar-readable html-file.

[This doesn't work. Please look at my next post.]

Here's what to do (a little complicated, but it works for me):

- Install wget from http://www.merenbach.com/software/wget

- Save this code to a new file at ~/Library/Application Support/LaunchBar 4/delicious.xsl

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:NC="http://home.netscape.com/NC-rdf#" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
     <html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <dl>
           <xsl:apply-templates/>
        </dl>
     </html>
</xsl:template>
<xsl:template match="//post">
     <dt><a href="{@href}"><xsl:value-of select="@description"/> tags: <xsl:value-of select="@tag"/></a></dt>
     <xsl:text>
     </xsl:text>
</xsl:template>
<xsl:template match="text()|@*"/>
</xsl:stylesheet>


- Copy this code to a new file at ~/Library/Application Support/LaunchBar 4/delicious.sh, change "name" and "password" to your del.icio.us login...

Code: Select all

#!/bin/sh
wget --no-check-certificate -O - https://name:password@api.del.icio.us/v1/posts/all | xsltproc ./delicious.xsl - >delicious.html

...and make it executable:

Code: Select all

sudo chmod 755 ~/Library/Application Support/LaunchBar 4/delicious.sh


- Then copy the following code into a new file, replace "USERNAME" with your osx account name, maybe adjust the update interval (StartInterval, 14400 seconds equals 4 hours. Very short intervals will get you banned on delicious). Save the file to ~/Library/LaunchAgents/com.delicious2launchbar.plist then logout and login again.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Label</key>
   <string>com.delicious2launchbar</string>
   <key>ProgramArguments</key>
   <array>
      <string>/Users/USERNAME/Library/Application\ Support/LaunchBar\ 4/delicious.sh</string>
   </array>
   <key>StartInterval</key>
   <integer>14400</integer>
</dict>
</plist>


- Finally open LaunchBar configuration. Add a new template by clicking New: Web Browser Bookmars: Custom HTML Bookmarks File and choose ~/Library/Application Support/LaunchBar 4/delicious.html
The file delicious.html appears only after the shell script delicious.sh has run at least once! You can either wait or run it manually by typing this into the terminal ~/Library/Application\ Support/LaunchBar\ 4/delicious.sh and press enter.

I hope this is useful for some of you.[/url]
Last edited by modoq on Sun Mar 01, 2009 7:20 pm, edited 4 times in total.

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Thu Feb 26, 2009 12:13 am

Wow, thanks a lot!

I don't have the time to try this at the moment (a lot of work to get through) but I'll give this a try in the morning.

I've really been wanting this in LaunchBar for a long time, so really hope I can get it to work :)

[edit]
OK, found a bit of time to try this. Followed all the instructions.

Had to type

sudo chmod 755 ~/Library/Application\ Support/LaunchBar\ 4/delicious.sh

instead of

sudo chmod 755 ~/Library/Application Support/LaunchBar 4/delicious.sh
(add the back slashes)

All seemed fine until I tried to run the delicious.sh file manually from Terminal. I get the following results:

Code: Select all

Last login: Wed Feb 25 23:10:06 on ttys000
MacBook-Pro:~ Jono$ ~/Library/Application\ Support/LaunchBar\ 4/delicious.sh
--2009-02-25 23:11:38--  https://Iconaholic:*password*@api.del.icio.us/v1/posts/all
warning: failed to load external entity "./delicious.xsl"
cannot parse ./delicious.xsl
Resolving api.del.icio.us... 76.13.6.208
Connecting to api.del.icio.us|76.13.6.208|:443... connected.
WARNING: cannot verify api.del.icio.us's certificate, issued by `/C=US/O=Equifax/OU=Equifax Secure Certificate Authority':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to api.del.icio.us|76.13.6.208|:443... connected.
WARNING: cannot verify api.del.icio.us's certificate, issued by `/C=US/O=Equifax/OU=Equifax Secure Certificate Authority':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/xml]
Saving to: `STDOUT'

    [ <=>                                   ] 0           --.-K/s   in 0s     


Cannot write to `-' (Unknown error: 0).
MacBook-Pro:~ Jono$


Any suggestions? :)
[/edit]

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Thu Feb 26, 2009 9:48 pm

A bit more info on my problem.

I found when I type the last part into Terminal create the delicious.html file that it's created at the root of my home/user folder, instead of in the LaunchBar 4 folder in Application Support. But it's empty, there's nothing in it.

modoq
Posts: 4
Joined: Fri Oct 10, 2008 10:35 am

Post by modoq » Sun Mar 01, 2009 7:14 pm

Somehow it stopped working for me too ':shock:'

I think my problem was related to wget. So I tried cURL (again) and now it works just fine.

I also put the shell commands (back) into the launchd agent and used "absolute" paths (@Jono: ...with backslashes at the right place. Sorry about that :roll:)

- Save this code to a new file at ~/Library/Application Support/LaunchBar 4/delicious.xsl

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:NC="http://home.netscape.com/NC-rdf#" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
     <html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <dl>
           <xsl:apply-templates/>
        </dl>
     </html>
</xsl:template>
<xsl:template match="//post">
     <dt><a href="{@href}"><xsl:value-of select="@description"/> || tags: <xsl:value-of select="@tag"/></a></dt>
     <xsl:text>
     </xsl:text>
</xsl:template>
<xsl:template match="text()|@*"/>
</xsl:stylesheet>


- Then copy the following code into a new file, replace "name" and "password" with your delicious-login, maybe adjust the update interval (StartInterval, 14400 seconds equals 4 hours. Very short intervals will get you banned on delicious). Save the file to ~/Library/LaunchAgents/com.delicious2launchbar.plist then logout and login again.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Label</key>
   <string>com.delicious2launchbar</string>
   <key>ProgramArguments</key>
   <array>
      <string>curl https://name:password@api.del.icio.us/v1/posts/all | xsltproc ~/Library/Application\ Support/LaunchBar\ 4/delicious.xsl - >~/Library/Application\ Support/LaunchBar\ 4/delicious.html</string>
   </array>
   <key>StartInterval</key>
   <integer>14400</integer>
</dict>
</plist>


- Finally open LaunchBar configuration. Add a new template by clicking New: Web Browser Bookmarks: Custom HTML Bookmarks File and choose ~/Library/Application Support/LaunchBar 4/delicious.html
The file delicious.html appears only after the launchd agent has run at least once! You can either wait or run the following command in the terminal (remember to first replace name and password!):

Code: Select all

curl https://name:password@api.del.icio.us/v1/posts/all | xsltproc ~/Library/Application\ Support/LaunchBar\ 4/delicious.xsl - >~/Library/Application\ Support/LaunchBar\ 4/delicious.html


Please tell me if it works.

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Sun Mar 01, 2009 11:45 pm

Yea, that works. Thanks a lot! :D

I guess there's no way to make the Delicious bookmarks use a different icon right? (i.e. the Delicious icon)

Thanks again!

modoq
Posts: 4
Joined: Fri Oct 10, 2008 10:35 am

Post by modoq » Mon Mar 02, 2009 2:35 pm

I really have no idea about that. Someone from obdev?

modoq
Posts: 4
Joined: Fri Oct 10, 2008 10:35 am

Post by modoq » Wed Mar 18, 2009 10:38 am

To find bookmarks by tag launch launchbar, then type "|" and your tag...

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Post by Jono » Mon Mar 23, 2009 1:17 pm

Ooo, great tips, thanks!

Post Reply