Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating new note in Notes #13

Closed
MizterB opened this issue Apr 12, 2023 · 1 comment · Fixed by #18
Closed

Error when creating new note in Notes #13

MizterB opened this issue Apr 12, 2023 · 1 comment · Fixed by #18
Labels
bug Something isn't working

Comments

@MizterB
Copy link

MizterB commented Apr 12, 2023

When following the example:
PyXA.Application("Notes").new_note("PyXA Notes", "Example text of new note.")

An exception is raised: AttributeError: 'str' object has no attribute 'text'

Seems to be related to 03d9d2c#diff-19878d8e9796a90d6a6ceb11f8fa1c85383268842ea68ff71fc2ce5cc2be4779, which tries to reference a text attribute that does not exist in a string.

@SKaplanOfficial SKaplanOfficial added the bug Something isn't working label Apr 12, 2023
@SKaplanOfficial
Copy link
Owner

Ah, this is because I was testing support for using XAText objects there. I'll implement a fix with support for both XAText and str. In the meantime, you can create notes like this:

PyXA.Application("Notes").new_note("PyXA Notes", PyXA.XAText("Example text of new note."))

SKaplanOfficial added a commit that referenced this issue Apr 13, 2023
@SKaplanOfficial SKaplanOfficial mentioned this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants