taskbridgeapp.notes.model.notefolder.LocalNoteFolder

class taskbridgeapp.notes.model.notefolder.LocalNoteFolder(name, uuid=None)

Bases: object

Represents a local folder storing notes.

Methods

create

Creates this folder locally by calling an AppleScript script.

delete

Delete the local folder with this object's name by calling an AppleScript script.

__init__(name, uuid=None)

Create a new local folder instance. The folder is not actually created until the create() method is called.

Parameters:
  • name (str) – the name of the local folder.

  • uuid (str | None) – the UUID of the local folder.

create()

Creates this folder locally by calling an AppleScript script.

Return type:

tuple[bool, str]

Returns:

-success (bool) - true if local folder is successfully created.

-data (str) - error message on failure, or UUID on success.

delete()

Delete the local folder with this object’s name by calling an AppleScript script.

Return type:

tuple[bool, str]

Returns:

-success (bool) - true if local folder is successfully deleted.

-data (str) - error message on failure, or success message.