Re:Cleaning up my 200GB iCloud with some JavaScript
by Groxx on Friday January 05, 2024 @02:59PM
(#38884003)
Since you're willing to write since code apparently: have you checked the internal databases? They're just sqlite, moderately understandable at a glance last time I looked.
[ Parent
| on HN ]
Re:Cleaning up my 200GB iCloud with some JavaScript
by w-ll on Friday January 05, 2024 @03:25PM
(#38884385)
Side note, been a while sense i looked, is there a sqlite db for the contacts table?
Re:Cleaning up my 200GB iCloud with some JavaScript
by sbr464 on Friday January 05, 2024 @03:53PM
(#38884785)
Yes
Re:Cleaning up my 200GB iCloud with some JavaScript
by w-ll on Thursday January 11, 2024 @10:39PM
(#38963377)
well the created_at/updated_at (these arnt the names of the colums, but still) are from when my macbook synced and not when the actual contact was created. useful, but not what i needed.
Re:Cleaning up my 200GB iCloud with some JavaScript
by asdaq1312512 on Friday January 05, 2024 @03:38PM
(#38884576)
Looks promising - will look into it!
Re:Cleaning up my 200GB iCloud with some JavaScript
by asdaq1312512 on Friday January 05, 2024 @05:04PM
(#38885600)
So it appears you can conveniently query the DB for filename (+directory), UUID, and (original) file size. But I can't find a good way of opening a Photo by filename or UUID.
After all, the file might not be present locally, so opening it should go through the Photos.app. But once you call AppleScript to open the file, you might as well use the AppleScript to comb through the database like the script I linked to earlier.
Re:Cleaning up my 200GB iCloud with some JavaScript
by LVB on Friday January 05, 2024 @07:23PM
(#38886925)
Check out this which I believe has that feature: https://github.com/RhetTbull/osxphotos