Mac OS X Reference Library Apple Developer
Search

Safari Bookmarks

Schema Name

com.apple.Bookmarks

Declared in

/System/Library/SyncServices/Schemas/Bookmarks.syncschema

Data Classes

com.apple.Bookmarks

Availability

Available in Mac OS X v10.4 and later.

Safari bookmarks are used to represent bookmarks and groups of bookmarks in Safari. The primary attributes of a bookmark are its logical name and URL. Bookmarks can be hierarchical—you can add bookmarks to folders and folders to other folders.

Figure 1 illustrates the entities, attributes, and relationships contained in the Bookmarks schema.

Figure 1  Bookmarks schema

Bookmarks schema

Bookmark

Entity name

com.apple.bookmarks.Bookmark

Data class

com.apple.Bookmarks

Availability

Available in Mac OS X v10.4 and later.

Represents a URL that users can add to the bookmarks bar or Bookmarks Library in Safari. Below are the attributes and relationships of a Bookmark record.

Attribute

Type

Description

name

string

Logical name for this bookmark.

Available in Mac OS X v10.4 and later.

position

number

The ordinal position of this bookmark relative to its parent folder. The first position has a value of 0.

Available in Mac OS X v10.4 and later.

url

url

The URL for this bookmark.

Available in Mac OS X v10.4 and later.

Relationship

Targets

Description

parent

Folder

The parent folder that contains this bookmark.

Available in Mac OS X v10.4 and later.

Folder

Entity name

com.apple.bookmarks.Folder

Data class

com.apple.Bookmarks

Availability

Available in Mac OS X v10.4 and later.

Used to organize bookmarks into ordered collections that may contain subfolders. Below are the attributes and relationships of a Folder record.

Attribute

Type

Description

name

string

Title of this folder.

Available in Mac OS X v10.4 and later.

position

number

The ordinal position of this folder relative to its parent folder. The first position has a value of 0.

Available in Mac OS X v10.4 and later.

Relationship

Targets

Description

children

Bookmark, Folder

Subfolders and bookmarks contained in this folder.

Available in Mac OS X v10.4 and later.

parent

Folder

The parent folder that contains this folder.

Available in Mac OS X v10.4 and later.




Last updated: 2009-07-07

Did this document help you? Yes It's good, but... Not helpful...