From c280b068888f2467f627e3750adf41374c28310c Mon Sep 17 00:00:00 2001 From: thinkpadder1 Date: Fri, 16 Aug 2019 01:16:31 -0400 Subject: [PATCH] Update script to work with latest Mac Need to use keystroke to trigger web address validation. Added auto cancel (needed if trying to enter duplicate entry). --- csv-toicloudkeychain.applescript | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/csv-toicloudkeychain.applescript b/csv-toicloudkeychain.applescript index ad4539c..c2dbb2e 100644 --- a/csv-toicloudkeychain.applescript +++ b/csv-toicloudkeychain.applescript @@ -40,13 +40,18 @@ repeat with i from 1 to length of recs click button "Add" of group 1 of group 1 of it -- write fields - tell last row of table 1 of scroll area of group 1 of group 1 of it - set value of text field 1 of it to kcURL - keystroke tab - set value of text field 2 of it to kcUsername - keystroke tab - set value of text field 3 of it to kcPassword - keystroke return + tell sheet of it + set focused of text field 1 to true + keystroke kcURL + + set focused of text field 2 to true + keystroke kcUsername + + set focused of text field 3 to true + keystroke kcPassword + + click button "Add Password" + click button "Cancel" end tell end tell