Vault login with 1Password autofill - AppleScript workflow

Hi to all who also use 1Password under macOS.

I have created an AppleScript, with which I can log in my CM Vault’s safely. Just note that the 1Password Mini is unlocked before.

In 1Password create a login for your CM Vault (here CMDokumente) with a secure password and enter the name of your CM Vault in the AppleScript… and voilà :wink:

tell application "System Events" to tell process "1Password mini"
	open location "onepassword://extension/search/XXXXXXXX"
end tell
delay 0.4
tell application "System Events" to tell process "1Password mini"
	keystroke "c" using {command down, shift down}
	delay 0.2
	tell application "Cryptomator" to activate
	delay 0.2
	tell application "System Events"
		keystroke "v" using command down
		delay 0.5
		keystroke return
		delay 1
		tell application "Finder"
			set the clipboard to " "
		end tell
	end tell
end tell

Here is a short Video

2 Likes