For the Mac app the user must configure it, I'm not sure how easy it is. For the SDK/daemon variant, the solution is that we have a daemon executable running that implements a TCP server. Then we have client libraries for a couple of languages you can use to connect to the server.
Hax-with-flic-osxThis is a basic app for Mac that integrates with Flic buttons.The application allows you to execute your own scripts on Flic button presses. This requires OSX 10.10 or above operating systems running on a machine that supports Bluetooth Low Energy. It is unclear exactly which machines that have Bluetooth Low Energy support, but Apple supposedly started the transition around 2012. Running the following in a terminal will output the Bluetooth LMP Version: systemprofiler -detailLevel full SPBluetoothDataType grep 'LMP Version'Version 0x6 was the first one that supported Low Energy, but we cannot guarantee that this will be correct for all computers. Using a Bluetooth Low Energy compatible USB dongle should also work if it is just configured correctly.Important noticeSince this application will blindly execute the scripts that you tell it to execute, it is very important that you make sure that you know what these scripts do. You need to verify, or have verified by someone who you trust, that the code being executed is not malicious in any way.