Use Your iPhone, Android, Or Windows Phone To Lock And Unlock Your Mac Using Bluetooth | Redmond Pie. Nice little hack - only needs a small open source program and two Apple scripts and you can trigger actions when, for example, a smartphone comes close to a computer or moves away from a computer - here using the example of the screen lock.