new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

clipboard/custom-formats

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

electron application/bookmark custom format

The electron application/bookmark custom format represents a URL bookmark. Unlike other MIME types, its payload is a ClipboardBookmark object on both write and read sides rather than a Blob, so getType('electron application/bookmark') resolves to { title: string, url: string }.

electron application/findtext custom format macOS

The electron application/findtext custom format is macOS-only and represents the contents of the active app's find pasteboard.

electron application/osclipboard custom format

The electron application/osclipboard custom format provides a raw payload for a platform-specific clipboard format. The format parameter specifies the platform format (e.g. 'HTML Format' on Windows or 'public.utf8-plain-text' on macOS). clipboard.read() surfaces any platform clipboard format that has no standard MIME mapping under this custom format, so a raw OS format round-trips through the same string on write and read.

web custom format prefix

Both clipboard.read() and clipboard.write() accept arbitrary MIME types including custom formats starting with the 'web' prefix (followed by a space, e.g. 'web application/x.my-format') that follow the W3C web custom format proposal.

clipboard.selection does not support web custom formats

The selection clipboard does not support the W3C web custom format.

ClipboardBookmark object structure

The ClipboardBookmark object has two properties: title (string) - The title of the bookmark, and url (string) - The URL of the bookmark.

ClipboardBookmark is the payload for electron application/bookmark format

ClipboardBookmark is the payload used by the electron application/bookmark clipboard custom format. It is passed to clipboard.write() as a ClipboardItem data value, and is what getType('electron application/bookmark') resolves to when reading via clipboard.read().

Give your agent this brain