A Few Questions Before Digging In

Cool. How do you trigger this (your example has no triggers showing)? If by keystroke, I guess the big difference in mine is that it automatically recognizes if the 1Password master password is needed whenever 1Password activates.

I wasn't familiar with Pushover, but I looked it up. Cool tool for a very reasonable one time cost. Too bad it doesn't have Alexa integration though. How do you do the KM macro action for it? I don't see that as an option.

1 Like

@RickO I use a different KM Autofill macro for 1Password to unlock apps, files, etc.
When the login window appears, the 1Password Mini is called with this shortcut:

2021-12-12_18-07-25

Then my macro checks if the 1Password Mini is unlocked or not. If the 1Password Mini is locked, the macro pauses until I unlock it via the Keychain Autofill macro.
I use, as shown in the video, a BetterTouchTool gesture... if you have no Touch ID, then you just tinker with your touch yourself :wink:

You can find a video and a screenshot of such a macro in this post:

Pushover notifications can do more than just display.

In the following video you can see my workflow:

Video

If I log in, I get the Pushover notification and can trigger a photo via the FaceTime Camera using a Siri shortcut (iCloud Drive).
I receive the photo again via a notification. If someone is sitting there at my Mac, who does not have permission to do so, then I can again execute a Siri Shortcut, which locks my keyboard and triggers a shrill alarm.

Also works if you trigger it when you wake up your Mac, of course. In my office, no one goes to my Mac anymore :wink:

There is such a pushover plugin for KM:

13)Pushover Blanko : Website <434C 211212T183457>.kmmacros (44,1 KB)

13)Pushover Blanko : Website <434C 211212T183457>

In the macro you will find the link to download the KM plugin.

I also use the Pushover notifications for Siri shortcuts. Here is a link to a template for it:

Pushover Siri Shortcut

https://www.icloud.com/shortcuts/95e6baa9ed5e4e1490ad03b38825a2e5

Would you like to have an indication of the battery level of your mouse, trackpad or MBP? You want to know that the battery level of your devices has dropped below 10%?
The popular apps only show you the notifications on the Mac, but thanks to Power Manager, KM and Pushover, I now know at all times, even when I'm not at home.

https://twitter.com/myapfelworld/status/1334421034792005634

https://twitter.com/myapfelworld/status/1418697431945027588

1 Like

@appleianer, I thank you.

I note that the macro hides windows rather than minimizes windows and these are different and thus will not work for me. I need to minimize windows.

Specifically, "minimize" minimizes the program to the dock where you can see a thumbnail of the program's window. while "hide" hides the window without adding the program's thumbnail to the dock.

Thanks.

Fair comment. This might require a loop in AppleScript. I'm not deft enough with AppleScript to write that. But did you test whether the KM action to Minimize a window does what you want if you specify the window correctly? Does it do the kind of minimizing that you want? If so, maybe we can make it work without AppleScript.

Hi All! I apologize for my absence but I am only allowed 8 posts a day so because I am a newbie. I need to make them count. I will respond to all the above posts here and then post new discussions for specific items, I hope that makes sense.

@tiffle , excellent, that was EXTREMELY useful. I made good use of it throughout the day as I banged away on KM on my own (with a little help from Google and Youtube!)

@RickO , appreciate the macro and post. A few comments:

  1. The macro was very helpful as it showed me how to enter passwords in multiple scenarios, be it 1Password opening, and Excel password protected file, a Safari webpage, etc. subject to 2. below. I did love the added touch of overwriting the clipboard!

  2. The problem I have is that I only store passwords in 1Password (i.e. I do not use the macOS iCloud keychain as you do). I wonder whether:
    a) there is a better of entering the password as I am now doing (i.e. text within a KM macro); and
    b) webpages there is a way to leverage 1Password once it is open.

I am new at this so learning (but I am happy with the progress I made so far :slight_smile: )!

@gglick, my bad as I did not communicate clearly!

The macros that you and other have provide minimize all windows of the active application other than the front window of the active application. I want to close all windows of all applications other that the front window of the active application!

The WINDCOUNT() macro is great but it counts windows of the active application only!

@appleianer , one day I hope to be able to follow and understand what you have automated but today is NOT that day but am working on it and trying to catch up!

@Sleepy , yes KM's minimize function does do what I want / need. I just need to figure out how to do it. I would likely be able to write the AppleScript code but I cannot get AppleScript to work within KM.

And, as it relates to getting AppleScript to work within KM I do believe that I have the proper settings per the below.

Screen Shot 2021-12-12 at 5.36.21 PM

+++++++++++++++++++++++++++++++

I think that is everyone.

I THANK EVERYONE FOR GETTING ME STARTED. IT IS GREATLY APPRECIATED!

I WILL BE CONTINUING EACH TOPIC IN A SEPARATE TO MAKE THINGS EASIER. I HOPE TO SEE YOU ALL THERE!

1 Like

You can use macOS Keychain without using iCloud Keychain. You just enter the password entry in the login keychain. Should still work.

a) You could surely store the 1Password master password right in KM macro. That would be easier, but would be much less secure. Especially if you sync macros between machines as I do.

b) Not sure what you mean by this. Since 1Password already integrates with Safari, not sure what else you'd like to do. There are some topics related to this here on the forum. For example How to Search 1Password 7 and Open 1Password Mini

RickO, that is interesting, I did not know that was possible.

If I understand you correctly you are suggesting that I store the 1Password master password in the macOS keychain without syncing it and then have KM retrieve the password from the macOS keychain like you do!

Is that correct and, if yes, would please share with me how to a) stop the password in the macOS keychain and b) how to check the macOS keychain to see what is stored there (as I have never used it, at least that I am aware of).

Again, another newbie issue until someone points the way.

I have not figured out how to take teh login credentials from password and enter them into the webpage so instead am just storing the login credential in KM which I know is not secure.

I would appreciate any assistance you can offer on pulling the login credentials from 1Password.

Thank you!

@RickO, well I figured out how to access the keychain, not too tough.

The information in there is a mess and beyond my ability to understand...the top section (i.e. Keychains) is a problem for another day in terms of understanding...the bottom section (i.e. category) is much clearer and as I suspected I have nothing in either the passwords, secure notes, my certificates or keys section which make sense as I never used them.

With that, we are down to how do I store a password in there for future access my KM which is much safer than storing it in the KM macro.

Yes.

stop it from what?

You edit the macOS Login keychain using the Keychain Access app (search in Spotlight).

I don't use 1Password's ability to integrate into Safari since I use iCloud Keychain. I have the 1Password Safari extension disabled. But I understand it is very good and works well. For help with that, I'd suggest the 1Password support site/help.

Select the login keychain in the sidebar. Then File > New Password Item. Put "1Password" in both the Keychain Item Name and Account Name fields and enter your 1Password master password in the Password field. This will match up with the entries in the Set Variable action in my macro.

Ooops, my bad, it should have read "store".

I understand. I have posted a separate thread on this forum and will see what coms back first before heading over to 1Password forum

RickO, noted with much thanks. I will try that later tonight and report back.

One more thing. How do I know / test that this will not end up in the iCloud Keychain because I definitely do not want that to happen, I want the information to be stored locally on my MacBook and no where else. I suppose the answer is by ensuring that Keychain is not toggled on in iCloud settings. Is that correct? Thx!

A bit of an observation here!

Assuming I can get AppleScripts to run with KM (please someone help), it occurs to me that it is still beneficial to know AppleScript so that it can jump in when needed (i.e. KM does not that functionality or KM requires a lot of work to replicate that functionality).

I also have not played much with either Automator or Shortcuts and would be interested on peoples' thoughts of those relative to KM.

Thx!

KM can call Shortcuts through the Execute Shell Script action. You can pass data to shortcuts through files or through standard input, but I found files to be more reliable during the beta so I'm sticking with that for now. The thing I use Shortcuts for the most is performing an OCR action on images. Monterey's OCR is more wonderful that words can describe (fast & accurate.)

Some people think that Shortcuts is buggy or inconsistent. They might be right. So you can wait a couple of years for the next iteration, (and it still won't be perfect) or you can dive in now and deal with these problems. I prefer diving in now. It has a few features that are probably worth exploring, like HomeKit control.

What exactly is the issue you're running into with executing AppleScripts in KM? Assuming KM's permissions are set to automate other apps in the Security and Privacy preference Automations pane, it should work just as well as any other app that can run AppleScripts.

I am still stuck on Catalina, my MacBook is nine years old BUT a new laptop will be here in 10 days so I will explore the OCR.

I am running a Crestron backbone with a Josh.Ai interface so HomeKit is not on my radar as I needed something more robust and more developed.

In terms of Automator vs Shortcuts vs KM I am polling others to see what the consensus is as I have very busy days and can only spend so much time learning and implementing one of them.

Make sense?

If you are trying to choose among those three apps, Automator is being deprecated soon, Shortcuts is very very limited, but KM is neither of those things.

Nothing happens, they do not run within KM despite the fact that they run perfectly outside of KM.

If you jump over to the Excel thread I posted I included a KM macro with AppleScript that does not work inclusive of the accessibility access I have given KM.

Would love to get this working!'

Well that makes the decision simple! KM it is! At least until Apple decides to throw some real weight behind Shortcuts!

Great. Consider the fact that Shortcuts doesn't even have a WHILE loop. Seriously, how can you write any programs without a WHILE loop? (Although you can hack it, two different ways, but who wants a messy hack for every WHILE loop?)

Enough said!