A bookmark asset list is an object with one or more key-value pairs. Each key is the full path for the array of contents specified in the key's value. For example:

var bookmarks_after_second_modify = {
  "menu": [
    { uri: "http://www.getfirefox.com/",
      title: "Get Firefox"
    }
  ],
  "menu/foldera": [
    { uri: "http://mozilla.com",
      title: "Mozilla"
    },
  ]
};

This describes two bookmarks, one in the "menu" folder, and the other in the "folder1" subfolder of "menu".

All bookmark paths must begin with one of the following:

Sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu". TPS does not support forward slashes as part of a folder name.

Folder contents

The contents for a folder are given as an array of objects, representing various bookmark types, described below.

Bookmark objects

Valid properties are:

Example:

{ uri: "http://www.google.com",
  title: "Google",
  loadInSidebar: false,
  tags: [ "google", "computers", "misc" ]
}

Livemark objects

Valid properties are:

Example:

{ livemark: "LivemarkOne",
  feedUri: "http://rss.wunderground.com/blog/JeffMasters/rss.xml",
  siteUri: "http://www.wunderground.com/blog/JeffMasters/show.html"
}

Folder objects

Valid properties are:

Example:

{ folder: "folderb",
  changes: {
    location: "menu/foldera",
    folder: "Folder B",
    description: "folder description"
  }
}

Separator objects

Valid properties are:

Example:

{
  separator: true
}

Bookmark lists and phase actions

Following are the functions you can use in phase actions related to bookmarks: