Signing back into the Community for the first time? You'll need to reset your password to access your account.  Find out more.

Forum Discussion

Former Member's avatar
Former Member
4 years ago

Get_safari_password with Keychain passwords [Solved]

I ran the script yesterday and it was proceeding until I tried to do something on my laptop and the script stoped (I only realised later I should have let it run). Now when I run the script safari restarts but I don't get the password (preferences) window and get the error:

error "System Events got an error: Can’t get group 1 of window 1 of application process \"Safari\". Invalid index." number -1719 from group 1 of window 1 of application process "Safari"

I've rebooted, restarted safari and the script error with no success

1Password 7
Version 7.8.7 (70807004)
1Password Store

MacOS 11.5.1

safari 14.1.2


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

  • Former Member's avatar
    Former Member

    MrC Unfortunately quitting both safari and the script editor as you suggested did not resolve the issue. I rebooted and checked using activity monitor and there were no safari processes running - same error message

  • MrC's avatar
    MrC
    Respected Contributor

    Hi @taize

    Quit Safari and Quit Script Editor. Be sure they are both Quit (not just closed windows). Once this is done, double-click the script to have it open Script Editor. Then run it. It will launch Safari and should do the right thing.

    Most users have their apps automatically re-open after restart / login and they retain some state (and this may be what's happened to you). Once these two apps get into this state, for some reason the script has trouble controlling Safari. So be sure both Quit both.

    See if this helps.