Mac OS X Reference Library Apple Developer
Search

Mail Notes

Schema Name

com.apple.Notes

Declared in

/System/Library/SyncServices/Schemas/Notes.syncschema

Data Classes

com.apple.Notes

Availability

Available in Mac OS X v10.5 and later.

This schema is used by the Mail application to sync all notes that appear in the Notes mailbox in Mail.

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

Figure 1  Notes schema

Notes schema

Attachment

Entity name

com.apple.notes.Attachment

Data class

com.apple.Notes

Availability

Available in Mac OS X v10.5 and later.

An arbitrary file included with the body text of a note.

Attribute

Type

Description

attachmentID

string

An identifier used to mark the location of an attachment in the body text.

Available in Mac OS X v10.5 and later.

content

data

The content of the file attachment.

Available in Mac OS X v10.5 and later.

contentType

string

The MIME type of the content. This value is unrestricted.

Available in Mac OS X v10.5 and later.

name

string

The human-readable name for this attachment.

Available in Mac OS X v10.5 and later.

Relationship

Targets

Description

note

Note

The note that this attachment belongs to.

Available in Mac OS X v10.5 and later.

Note

Entity name

com.apple.notes.Note

Data class

com.apple.Notes

Availability

Available in Mac OS X v10.5 and later.

A user’s note, similar to email, which is a textual description with attachments.

Attribute

Type

Description

author

string

The email address of the user who created the note. Mail requires that this property be set.

Available in Mac OS X v10.5 and later.

content

string

The body text of this note. Mail requires that this property be set.

Available in Mac OS X v10.5 and later.

contentType

enum

The type of content for parsing and display. Possible values are text/plain and text/html. Mail requires that this property be set.

Available in Mac OS X v10.5 and later.

dateCreated

date

The date the note was created. Mail requires that this property be set.

Available in Mac OS X v10.5 and later.

dateModified

date

The date the note was last modified. Mail requires that this property be set.

Available in Mac OS X v10.5 and later.

subject

string

The contents of the note; typically, the first line of the note. Mail requires that this property be set.

Available in Mac OS X v10.5 and later.

Relationship

Targets

Description

attachments

Attachment

A collection of attachments contained in this note. Attachments may appear in multiple locations within the body text.

Available in Mac OS X v10.5 and later.

keywords

Keyword

A collection of keywords used to describe and classify this note.

Available in Mac OS X v10.5 and later.

Keyword

Entity name

com.apple.notes.Keyword

Data class

com.apple.Notes

Availability

Available in Mac OS X v10.5 and later.

A keyword used to identify a note.

Attribute

Type

Description

name

string

The text for this keyword.

Available in Mac OS X v10.5 and later.




Last updated: 2009-07-07

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