I use 1Password heavily and as am fond of its ability to create autofill bookmarks as I am annoyed by Safari's insistence on asking if it's ok to open them.
In my case, the answer is never "Cancel," and the solution to "stop asking me that!" is so simple I'm embarrassed to admit I snarled "Allow! curséd Safari!" for a year before putting a stop to it.
All it takes is one little AppleScript in Safari's scope.
When an autofill bookmark created by 1Password is chosen in macOS Safari, macOS requires Safari to explicitly get permission to talk to 1Password.
macOS security has gotten very tight in recent years, and while I approve of that in practice, Safari really ought to have a preference to whitelist such transactions.
I'm getting a similar pop-up when I try to fill in the credit card information. My system is in another language so I changed the word "Allow" in AppleScript. It works, but not when the Safari window is active. I have to switch to a different app, then back to Safari and then it clicks.
Thanks! Now I'm sad not so many apps installed on my system use master password
@commiepinko, I have found this thread from Dan. Do you think something like Authy AutoFill could work with mounting encrypted Time Machine drive?
I use 1Password. Now, thanks to your macro 1Password can unlock the Authy app in seconds. I can imagine this macro could be easily modified for other apps by changing the application name as a trigger. But what about a pop-up asking for a password to access an encrypted external drive?
I couldn't figure out how to trigger it automatically after a pop-up "SecurityAgent" appear so I tried a different approach with the help of AppleScript.
@roskozmos You start the macro with the AppleScript command to run the backup. Then you pause the macro with the action (Pause until - Image found).
When the input for password input appears, the macro continues with the input of the password from 1Password.
I found out there is no need to type the password again and again when the drive is still attached. So, after the system starts, the "SecurityAgent" pop-up appears and I can run macro which mounts the drive, with the help of 1Password. Next, the second macro with AppleScript for scheduling TM backups should work just fine.
set driveName to "Backup HDD"
set driveInfo to do shell script "diskutil list | grep "" & driveName & """
set driveID to last word of driveInfo
do shell script "diskutil mount " & driveID & ""
Pause, and then run
set driveName to "Backup HDD"
set driveInfo to do shell script "diskutil list | grep "" & driveName & """
set driveID to last word of driveInfo
do shell script "diskutil unmount " & driveID & ""
Hi @appleianer ,
I've seen your videos on YT. Great stuff! I'm thrilled by the automatic translation feature by Google. Anyway, watching a few videos helped me understand how to modify your macro for App Store or System Preferences. I still cannot figure out how to deal with system permissions. For example:
For daily use, I use a standard user account. Each time I want to make changes I have to type username. It's not a big deal to type "sysadmin" and hit the tab key, but I'm just curious if the macro can grab a username first and then a password from 1PW.
thanks for helping me out with the username. It works in System preferences. I'm still struggling with autorizing permissions. For example, moving app from aplications folder to the trash.
It seems 1Password search worked just fine. But I get stuck to this exact spot.
maybe this is something different than "com.apple.SecurityAgent"?
tell application "System Events" to tell process "1Password mini"
keystroke "c" using {command down, shift down}
delay 0.2
tell application "com.apple.SecurityAgent" to activate
delay 0.2
tell application "System Events"
keystroke "v" using command down
delay 0.5
keystroke return
delay 1
tell application "Finder"
set the clipboard to " "
end tell
end tell
end tell
@roskozmos you use this, for password prompts for updates, uninstalling apps.
tell application "System Events" to tell process "1Password mini"
keystroke "c" using {command down, shift down}
delay 0.2
tell application id "com.apple.SecurityAgent" to activate
delay 0.4
tell application "System Events"
keystroke "v" using command down
delay 0.5
keystroke return
delay 1
tell application "Finder"
set the clipboard to " "
end tell
end tell
end tell
You use this AppleScript if you need to unlock the system settings
tell application "System Events" to tell process "1Password mini"
keystroke "c" using {command down, shift down}
delay 0.2
tell application "System Preferences" to activate
delay 0.2
tell application "System Events"
keystroke "v" using command down
delay 0.5
keystroke return
delay 1
tell application "Finder"
set the clipboard to " "
end tell
end tell
end tell
It is also important that you have added these two library apps to the System Accessibility.
Can you please give me the password macro here. Then I'll have a look.
I'm a bit lost on this one. If you want to delete an app, then you have to approve it with your system/Mac password?
What settings do you have that you have to confirm such processes with your system password?