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
4 years agoGet_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
On behalf of MrC, you are very welcome :)
- Former Member
Thank You!
- MrCRespected Contributor
@sarapova
Safari 15 now allows you to export its passwords as CSV. Open the password tab in Safari preferences, enter your password, and then click the gear icon at the bottom, and select
Export Passwords..
. You will be asked to enter your Mac's password to continued. Enter it, and name the resulting CSV file.With this new feature in Safari 15, there's no reason to use the Get_Safari_Passwords script anymore.
- Former Member
Same error on Safari 15.0 and macOs 10.15.7. Any suggestion?
- MrCRespected Contributor
Outstanding @taize ,
Sometimes these little life-successes are to be simply enjoyed, if never understood. :-)
Enjoy 1Password!
- Former Member
MrC Its all working now. I re-downloaded the conversion suite and ran the newly downloaded script and it worked perfectly. I'm not sure how the original one got corrupted. Thanks for your quick support.
- MrCRespected Contributor
Do you get a Log file on your Desktop?
- MrCRespected Contributor
@taize,
I''m trying to think of reasons why you'd see this.
You did set the Accessibility settings like as shown below, right?
You can try Safe Mode, don't know if that will help / hurt.
I just ran the script twice in a row, and it ran to completion (an up to date system).
Is your system fairly old, and slow? The script waits for Safari to do its work, but perhaps there is still a timing issue for your system.
- Former Member
MrC What is really odd is the script worked perfectly the first time I ran it. I interrupted it and since then it has not worked. Could there be something with safari that is blocking the script? Would booting to safe mode help?
- MrCRespected Contributor
I'm not sure what to advise then, @taize.
It's critical that the script be allowed to do its work without interruption. The error you see typically has occurred when users tried to use the Mac at the same time that the script was running. And due to the way the AppleScript is targeting systems dialogs and windows, it needs to control the user interface during that time.
Does your Mac have anything that might be interfering with this, or changes the user interface in some way?