Forum Discussion

Joelc's avatar
Joelc
Super Contributor
4 years ago

1Password for Mac is Not Scriptable!

I have an AppleScript that on macOS startup opens a number of applications, opens their related files, and properly positions their windows.

It was time to add 1Password to AppleScript but when I attempted to do so I discovered that 1Password is not scriptable.

Please make 1Password scriptable including an easy way to enter the password!

Thanks!


1Password Version: 8.5.0
Extension Version: Not Provided
OS Version: macOS 10.15

12 Replies

  • Joelc's avatar
    Joelc
    Super Contributor

    @appleianer , thank you for the response.

    1. I have never heard of Keyboard Maestro but will take a look when time permits. Interesting, you wrote that your AppleScript knowledge is not the best yet you are using AppleScript in the macro, did you write the code or did you pull it from somewhere?

    2. I hope that someone from 1Password chimes in as it would be a great feature to have. The reason why I would love to have this is that I start 7 apps when I start up my MacBook and all are scriptable except two; 1Password and Quicken fo Mac.

    Thanks.

  • Anonymous's avatar
    Anonymous

    Joelc I don't have a pure AppleScript solution for you. I needed a solution how to take into account the opened as well as the locked 1Password Mini. Also, my script knowledge is not the best.

    I found a solution using the app https://www.keyboardmaestro.com/main/.

    Here is an example of it:

    https://share.getcloudapp.com/Z4uor6WQ

    https://share.getcloudapp.com/Z4uor6WQ

    Here is the macro I use:

    Yellow: Shortcut to call the 1Password Mini.
    Green: If Then action (screenshots) that checks if the 1Password Mini is unlocked/locked.
    Red: Name of the password - here @iMac

    In this example, the 1Password Mini is already unlocked. If it is not, the Keyboard Maestro macro pauses and waits for the master password to be entered before proceeding with the autofill.

    In this tweet, the autofill login is triggered with the launch of the app (Cryptomator) and then the Finder window is resized for the correct size.

    https://twitter.com/myapfelworld/status/1402365620566597635

    Here is a YouTube tutorial (unfortunately in German):

    https://www.youtube.com/watch?v=BHaVE9PSE2A

    Please note that the script to open the 1Passowrd Mini unfortunately does not work anymore. Therefore I had to resort to the shortcut.