Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
I work in an org where iCloud drive is not allowed but Google Drive via Google Workspace is, so I resorted to using this project to backup my Apple Notes.
After I set it up, while testing I believe to have come across a multitude of bugs & I've implemented fixes that I've also tested on my machine. Those are as follows:
Bug 1:
If the
notes-exporterproject is in a path with spaces, e.g./Users/me/My Programs/notes-exporter, then the original code fails due to$(realpath "$0")being unquoted. Fixed by adding quotes.Bug 2:
When I ran it multiple times with
--update-all, I saw that instead of overwriting, it was appending to the existing notes leading to the size increasing in multiples of each run. Thus is because starting at eof appends to the existing file. Fixed by truncating the file before writing.Bug 3:
In my Indian locale, the date parsing done by
set-file-dateswas failing. Apple Notes returns dates like Saturday, 21 March 2026 at 7:45:55 PM on systems with day-before-month locale settings. The existing formats only handled month-before-day (12h) and day-before-month (24h), missing the 12-hour day-before-month and 24-hour month-before-day combinations. All four combinations are now covered.CC : @storizzi