PyXA
PyXA copied to clipboard
SBObject not properly initialized for Notes
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