Skip to content

SBObject not properly initialized for Notes #21

Description

@jzarzuela

Hi,
In some cases when you retrieve notes or other elements from Notes application, some of the properties return "None".

Example code:
note_lst:XANoteList = icloud_account.notes()
for note in note_lst:
cnt = note.container
print(cnt.name)

The associated bridge element is not retrieved properly. You need an extra call to "get()" for it to work:

    note_lst:XANoteList = icloud_account.notes()
    for note in note_lst:
        cnt = note.container
        cnt.xa_elem = cnt.xa_elem.get()
        print(cnt.name)

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions