I want to create a keyboard trigger that automatically copies the username and password on 1Password 7 app in the clipboard and when copy the username should go in the first line of the clipboard while the password goes into the second line.
I hope I made it clear about what I want to achieve here. I am not sure what I should be using here and if the apple script would work with it or not.
with this AppleScript you open 1Password Mini for a short moment and can copy the username (here iCloud Account):
tell application "System Events" to tell process "1Password mini"
open location "onepassword://extension/search/iCloud"
end tell
delay 0.4
tell application "System Events" to tell process "1Password mini"
keystroke "c" using {command down, control down}
end tell
With this AppleScript you copy the password:
tell application "System Events" to tell process "1Password mini"
open location "onepassword://extension/search/iCloud"
end tell
delay 0.4
tell application "System Events" to tell process "1Password mini"
keystroke "c" using {command down, shift down}
end tell
I'm not so good with AppleScript that I could tell you how to get both of them together and under each other into the clipboard.
Maybe someone can help here in the forum.
What exactly do you want to do with it? What kind of accounts do you want to open with it? On apps on the Mac or the Internet?
I created this macro to log into my user account, my iCloud account or other apps on the Mac.
I've added the "click a found image actions" to pause the macro until I've unlocked the 1 password mini if necessary.
In this video I show some examples how I use the 1Passwort Autofill macros with me. Just for info the shown examples were still using 1Passwort 6
Hi @abbas_zahid, I tried a little bit...
Your intention cannot be realized with the 1Password Mini, because it will be closed immediately after a copy process.
However, if you call the 1Password app it works to copy the username and password into a KM clipboard.
Perhaps someone here in the KM Forum will come up with a more elegant solution. Let me know how things work for you.
Please don't forget to delete both from the clipboard
I make my videos/GIFs with the software ScreenFlow.
I think it's good to show my macros in execution/action whenever possible.
Since my English is not very good (online translator), it is always easier for me to understand if I can also see sequences in a video and if necessary also imitate them.