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

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...