I lost a ton of Wi-Fi passwords in my iCloud Keychain when I was forced to Reset Network Settings last year. All the lost entries are still in my System keychain and I’ve learned how I can disable iCloud Keychain to create the Local Items keychain and copy the items from System to Local Items.
However, upon doing so, the items get renamed “AirPort” instead of the original name that matched the Account Name in each item. I want to use AppleScript, with Usable Keychain Scripting (if possible), to script this process.
I tried using Google Bard and other references to get started, but got stuck at every turn. Is someone excited to draft a script for me? I think the first trick is telling the system to read the keychain-2.db file in my keychain library that is not in the form “name.keychain.”