Bookmarking a URL to a Haiku file (similar to copying a Web+ favicon to tracker folder)

One thing I really like about WebPositive is how I am able to send a bookmark of a web page to a desktop folder by click dragging the favicon in front of the site’s URL to a suitable tracker folder.

I like it so much that even though I do my browsing on Floorp these days, I often boot up WebPositive so I can cut and paste the URL from Floorp to WebPositive just so I can drag and drop the favicon of the site to my ‘reading list’ tracker window.

Is there a simpler way to achieve this in Floorp or Iceweasle though? If anyone knows of a way to create a Haiku file from an open site in Floorp/Iceseasle which can be used as a bookmark, please let me know. Thanks!

There’s no one-click solution that I can find. All the advice I see involve dragging the padlock icon, but that’s not working here. Best I can offer is a workaround.

Create a new Tracker Template. Call it Bookmark (although it is really a shell script). The contents are

#!/bin/sh
open 

Make sure it is executable

Now in your browser, copy the URL to clipboard.

Rightclick on the desktop, select New|Bookmark. A file is created called New Bookmark. Rename it.

Open the file in a text editor and paste the URL after the word “open”

#!/bin/sh
open www.wherever.com

Save it and you’re done. The URL will open in the default browser. Adjusting the script to open in a specific browser is also possible, I’ll leave that to your imagination :grinning: .

PS @humdinger maybe this could be sped up via Clipdinger?

1 Like

Why do it with a hack using “open” when your template could be an actual bookmark file where you just need to edit the URL attribute?

If the hack is easier than the proper solution, it means we’re doing something wrong, and we should fix that :slight_smile:

1 Like

OK, I’ll bite

Good suggestion, if you want to reopen the URL in WebPositive or … well, Netsurf.

The OP prefers to browse in Floorp. With a script, you can just replace open with /boot/system/apps/Floorp/Floorp

Maybe we need a little utility that will read the URL attribute from a bookmark file, detect the available browsers on a system and ask the user which one to use … damn, there goes my day off.

1 Like

Perhaps a script that you can use with TrackRunner?

I think the urlwrapper command should already open URLs with the preferred browser, and it should also work if you set it as the preferred apps for bookmark files in the filetype preferences?

Not sure, since I indeed only use Web+ and NetSutf myself :slight_smile:

2 Likes

It works! If I use WebPositive as a bookmark keeper, and have its bookmark folder open on the desktop, I can get the url to open up in Floorp with a double click on the filename.
I tried to see whether there was a similar bookmark folder in Floorp’s config files but it seems that unlike WebPositive, Floorp does not keep its bookmarks as Haiku-attributed files and so this particular functionality seems to be a WebPositive speciality….

THanks everyone, for your help. I think I understand now how Haiku specific apps are more closely integrated with the specific attributes of the Haiku and filesystem.

Yeah, don’t have a Firefox derivative on this computer but IIRC the bookmarks are in a big XML/HTML file somewhere in the settings directory.

Not sure how well or if it works with the new slew of browsers, but there’s “bookmarkconverter” in HaikuDepot that may serve to script conversions of Floorp-Weasle-Wolf-Fox-whathaveyou to/from Web+ bookmarks.