Skip to content

[Observer] Error raised when there are fewer then 10 notes #37

@AaronGoldsmith

Description

@AaronGoldsmith

I only have a couple notes on this computer so the script tries to access an out of bounds index. Maybe we could search up to the 10 most recent?

Checking Apple Notes for items requiring attention...
Error running AppleScript: Command '['osascript', '-e', 'tell application "Notes" to get name of notes 1 thru 10']' returned non-zero exit status 1.
Error output: 32:36: execution error: Notes got an error: Can’t get notes 1 thru 10. Invalid index. (-1719)
No notes requiring attention - status written to /Users/aaron/.local/share/goose-perception/notes-todo.txt
Notes check completed.

Note

I did in fact have notes requiring attention

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