I assume an iCloud placeholder file will work if you don't choose 'Ignore Partial Files'. Once the file is added to cloud storage, your Mac wants to download it, even if you have 'optimize storage on' I believe this should work if Keyboard Maestro is just looking to see if the folder has had a new file added to it. That's a core feature that they really want to have working well. Apple is very much motivated to make sure that files work well with cloud storage, especially iCloud. The nice thing about creating a file in a service like iCloud or Dropbox is that it's quick, easy, and reliable. Is your Shortcut going to be able to handle repeating the request a few times if necessary, but stopping once it actually gets through? I've done it myself, and it works fairly well, IMO. How are you going to connect from outside of your home Wi-Fi network to a computer inside it? Open a port in your router/firewall? Does your Mac have a static IP address? So, if you want to interact 'directly' with your computer, how are you going to do it? SSH? Some sort of a web-trigger? Once you have left your home Wi-Fi network, you and your computer are no longer on the same network, Yes, that seems obvious, but bear with me. Here's the problem that you're going to run into if you try a more 'straight forward' approach. Presumably Keyboard Maestro can delete the file as part of its macro, so that shouldn't be too onerous. Well, of course, you don't have to delete the file, but then you'd have to make sure the filename was different so that it would trigger "adds an item" (I'm assuming by the name that "an item is changed" would not trigger it). I assume the same might happen with your "Leaving Home Wi-Fi" macro, so you might find it triggering at unexpected times. Just an FYI - I sometimes get a notification on my iPhone that I have joined my home Wi-Fi network even when I was just on my home Wi-Fi network, which runs my "Welcome Home" macro. Have it run the macro to lock your screen, turn off your lights, etc.ĭelete the file from the "/Shortcuts/MyiPhoneHasLeftMyHomeWiFiNetwork/" folder so you can use the trigger next time. Set the second dropdown to "trigger all changes immediately" Normally I would use Hazel for the next part (it's also possible with launchd), but since this is the Keyboard Maestro forum, you can use a "This Folder" trigger and point it at iCloud Drive + "/Shortcuts/MyiPhoneHasLeftMyHomeWiFiNetwork/" on your Mac. Just creating the file is the important part. What I want to do is trigger that same macro whenever my iPhone (11 Pro if it matters) leaves the Wifi network.Ĭreate a folder in your iCloud Folder for Shortcuts (go to "iCloud Drive" on your Mac and create a folder named something like "MyiPhoneHasLeftMyHomeWiFiNetwork"Ĭreate shortcut on the iPhone which will create a file in the iCloud folder "/Shortcuts/MyiPhoneHasLeftMyHomeWiFiNetwork/" - the actual name of the file and its contents are unimportant. I have a macro set up that I trigger with a hotkey which launches my screensaver, locks the screen and turns off my desk lamp (thanks to the "TypeToSiri" macro supplied by another forum member). I have a desktop Mac (iMac of recent vintage running latest Catalina) that is connected to my home Wifi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |