Forum Discussion

mickael's avatar
mickael
Dedicated Contributor
4 years ago

Open 1password from apple script

Hi,

I try to open 1password from Apple Script through a bash script.

I tried:


osascript -e 'tell app "1Password 7"' -e 'if it is not running then launch' -e 'end tell'

But this doesn't seem to work. I would like to have to bring the window on the desktop and ideally ask for password.

Is it possible to do that ?

Thanks


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

2 Replies

  • MrC's avatar
    MrC
    Super Contributor
    $ open /Applications/1Password\ 7.app
    
  • rudy's avatar
    rudy
    Icon for 1Password Team rank1Password Team

    mickael,

    I'm not entirely sure if you need to do the if it is not running then launch

    how about this?

    osascript -e 'tell app "1Password 7"' -e 'activate' -e 'end tell'