Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zoeloe

macrumors newbie
Original poster
Aug 17, 2018
15
4
Hi, MacPro5,1 with 15.0 and OCLP 2.0.1. I suspect that the icloud keychain sync doesn't work correctly. IMHO: the category "Web form password" doesn't appear to sync at all. Signed in and out icloud,... no go. (Seeding icloud Mac runs Catalina)
It appears the icloud subcategory "Web form password" isn't syncing over (only visible in Keychain Access, because Passwords has NO entries at all (nada)) (Tested Passwords by adding a Wifi network,... it's the only thing visible in Passwords for now... ) So no transfer from Keychain into Passwords it seems..... also no Safari remembered password autofill (yes, it's enabled) because of the incomplete icloud sync I guess.
Any ideas ? wait for 15.1 ? TIA. Checked on Sonoma. Web form passwords category in icloud keychain sync seems to work correctly And Password control panel is populated with websites.
 
Last edited:
Same here with a new Apple Mac at macOS 15.1. Although my seeding one is not 10.15 (Catalina) but 10.14 (Mojave). Actually, I do not need any sync, just a one-time transfer to the new Mac would be sufficient.
 
Gave up on this. When I added or modified a password in Sequoia, it synched towards Mojave. Even my account picture moved over to Mojave. However, neither the existing passwords, nor additions, modifications or deletions made it from Mojave to Sequoia. At the end, I stopped iCloud Keychain on both Macs and used the following AppleScript to extract all my passwords. Then, I used the „File import“ feature of the new Password app.
AppleScript:
repeat 1 times
    delay 0.2
   
    -- Title
    tell application "Keychain Access"
        activate
        tell application "System Events"
            delay 0.2
            keystroke return
            delay 0.2
            set the clipboard to "" -- required if the field is blank
            -- if blank, ⌘C is not available and does nothing
            -- if that did nothing, previous content is still in the clipoard
            keystroke "c" using command down
        end tell
    end tell
    delay 0.2
    tell application "TextEdit"
        activate
        tell application "System Events"
            delay 0.2
            -- if the field contains the separator "," the field must get quoted
            -- we quote always, because the field might contain a line break
            -- if the field contains a double quote, it must get a pair of double-quotes
            set AppleScript's text item delimiters to {"\""}
            set myWord to the clipboard
            set myParts to text items of myWord
            set AppleScript's text item delimiters to {"\"\""}
            set MyResult to myParts as string
            set the clipboard to MyResult
            keystroke "\""
            keystroke "v" using command down
            keystroke "\""
            keystroke ","
        end tell
    end tell
   
    -- URL
    tell application "Keychain Access"
        activate
        tell application "System Events"
            delay 0.2
            keystroke tab
            delay 0.1
            keystroke tab
            delay 0.1
            keystroke tab
            delay 0.2
            set the clipboard to ""
            keystroke "c" using command down
        end tell
    end tell
    delay 0.2
    tell application "TextEdit"
        activate
        tell application "System Events"
            delay 0.2
            set AppleScript's text item delimiters to {"\""}
            set myWord to the clipboard
            set myParts to text items of myWord
            set AppleScript's text item delimiters to {"\"\""}
            set MyResult to myParts as string
            set the clipboard to MyResult
            keystroke "\""
            keystroke "v" using command down
            keystroke "\""
            keystroke ","
        end tell
    end tell
   
    -- Username
    tell application "Keychain Access"
        activate
        tell application "System Events"
            delay 0.1
            keystroke tab using shift down
            delay 0.2
            set the clipboard to ""
            keystroke "c" using command down
        end tell
    end tell
    delay 0.2
    tell application "TextEdit"
        activate
        tell application "System Events"
            delay 0.2
            set AppleScript's text item delimiters to {"\""}
            set myWord to the clipboard
            set myParts to text items of myWord
            set AppleScript's text item delimiters to {"\"\""}
            set MyResult to myParts as string
            set the clipboard to MyResult
            keystroke "\""
            keystroke "v" using command down
            keystroke "\""
            keystroke ","
        end tell
    end tell
   
    -- Password
    tell application "Keychain Access"
        activate
        tell application "System Events"
            -- shortcut, see Menu → Edit → Copy Password to Clipboard
            delay 0.2
            keystroke "c" using {shift down, command down}
            -- Type password - update to yours
            delay 0.5
            keystroke "password"
            delay 0.2
            keystroke return
        end tell
    end tell
    delay 0.2
    tell application "TextEdit"
        activate
        tell application "System Events"
            delay 0.2
            set AppleScript's text item delimiters to {"\""}
            set myWord to the clipboard
            set myParts to text items of myWord
            set AppleScript's text item delimiters to {"\"\""}
            set MyResult to myParts as string
            set the clipboard to MyResult
            keystroke "\""
            keystroke "v" using command down
            keystroke "\""
            keystroke ","
        end tell
    end tell
   
    -- Notes, last item; therefore "return" to next line at the end
    tell application "Keychain Access"
        activate
        tell application "System Events"
            delay 0.2
            keystroke tab
            delay 0.1
            keystroke tab
            delay 0.2
            keystroke "a" using command down
            delay 0.1
            set the clipboard to ""
            keystroke "c" using command down
        end tell
    end tell
    delay 0.2
    tell application "TextEdit"
        activate
        tell application "System Events"
            delay 0.2
            set AppleScript's text item delimiters to {"\""}
            set myWord to the clipboard
            set myParts to text items of myWord
            set AppleScript's text item delimiters to {"\"\""}
            set MyResult to myParts as string
            set the clipboard to MyResult
            keystroke "\""
            keystroke "v" using command down
            keystroke "\""
            keystroke ","
            keystroke return
        end tell
    end tell
   
    tell application "Keychain Access"
        activate
        tell application "System Events"
            -- Close keychain item window
            delay 0.2
            keystroke "w" using command down
            -- Go to next keychain item
            delay 0.2
            key code 125
        end tell
    end tell
end repeat
end run
The starting point (and more explanation how to use), was a AppleScript in the 1Passwort community … There is an enhanced version on GitHub which I saw too late. It has a better explanation. Anyway, my variant is based on the original but also copies Notes and escapes passwords which contain commas or ampersands.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.