I'd like to run a macro periodically If, and only If, my MacBook is at home. The way that is normally proposed to achieve this is to use a Wireless Network Condition, to make the macro run If the home network is connected. But as I sometimes like to work on my computer without being connected to the internet, a better solution for me would be a If-statement for when a given WiFi network is available, as in within WiFi range, but not necessarily connected.
I thought there might be some apple script or something (that I could then run every couple of minutes), that would return a list of all available WiFi networks, but my online searches have not given me any working solutions.
Anyone having any idea about how to do this available WiFi trick? Or any ideas, other than connected WiFi network, on how to make a macro be location specific?
This is also an interesting approach! But I thought the Mac only retrieved it's location from what WiFi-network it was connected to? Or does the Mac's location services have more tricks up it's sleeve? Like communicating with my iPhones GPS or something? (Not that I am sure I would necessarily want to share my iPhone's location with my Mac though)
Thought I'd share my finished macro that returns the status of whether my MacBook is at home or not.
Set up like this to only run the somewhat slow script in the rare cases I am disconnected from my WiFi.
It will however, of course, not return a correct value if the WiFi is switched off, not only disconnected.
I will also redo my other location specific macros (that for instance mutes my Mac's audio at the library) so that I do not have to connect to a network for them to be set into effect. This is great!