Drafts5

class apps.Drafts5

Actions for Drafts 5.

append(uuid, text, action=None, allowEmpty=None, tag=None) → str

Append the passed text to the end of a draft identified by the UUID argument.

arrange(text, retParam=None) → str

Open Drafts arrange interface. Pass the resulting arranged text to the x-success URL instead of saving it in Drafts.

create(text, tag=None, action=None, allowEmpty=None) → str

Create a new draft with the content passed in the “text” argument.

dictate(locale=None, retParam=None) → str

Open Drafts dictation interface. Pass the resulting dictated text to the x-success URL instead of saving it in Drafts.

get(uuid, retParam=None) → str

Return the current content of the draft specified by the UUID argument as an argument to the x-success URL provided.

open(uuid, action=None, allowEmpty=None) → str

Open an existing draft based on the UUID argument.

prepend(uuid, text, action=None, allowEmpty=None, tag=None) → str

Prepend the passed text to the beginning of a draft identified by the UUID argument.

repace_range(uuid, text, start, length) → str

Replace content in an existing draft, based on a range.

run_action(text, action=None, allowEmpty=None) → str

Run a drafts action on the passed text without saving that text to a draft.

search(query=None, tag=None) → str

Open drafts directly to the draft search field.

workspace(name=None) → str

Open drafts directly the draft list with a named workspace selected.