PyXA icon indicating copy to clipboard operation
PyXA copied to clipboard

SBObject not properly initialized for Notes

Open jzarzuela opened this issue 1 year ago • 0 comments

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

jzarzuela avatar Feb 03 '25 18:02 jzarzuela