Jump to content

Safari Bookmark Manager

Recommended Posts

# Safari Bookmark Manager


Alfred 2 Workflow to manage safari bookmark (delete / edit)


# Installation


You may need to install the gem (sorry...)

Right-click on the worflow, show in finder.

In Terminal, drag and drop the folder to `cd` to it.

`gem install CFPropertyList`


# Usage


find a bookmark, go to file action, select `Rename Bookmark` or `Delete Bookmark`


# How it's done?


A bit sloppyly...


Couldn't find a good doc to do it via iCloud directly. (and didn't really search for it).


Alfred App find bookmark by because of their cache version in the user folder: ~/Library/Caches/Metadata/Safari/Bookmarks


Each file is name with a unique id.


Editing / deleting this file is not enough, it's just a cache.. Bookmark will reappear or be re-edited by Safari.


Another file maintain a more permanent version of the bookmarks: ~/Library/Safari/Bookmarks.plist



  - find the bookmark uuid (the cache file name, passed by alfred)

  - find the matching entry in the plist and edit it / delete it (also add entry for iCloud -- see code)

  - repeat the action on the cache file



Edited by rompelstilchen
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...