Detect the presence of your Bluetooth device and execute actions on your Mac.

BlueSense analyzes the signal of your Bluetooth device and executes any desired actions when you move or come back at proximity of your Mac.

BlueSense requires OS X 10.10 or later
BlueSense AppleScripts

How to play Spotify player for Mac in AppleScript

Play Spotify Mac player.


script SpotifyPlayPause
try
	tell application "System Events"
		activate
		set runningApp to processes whose bundle identifier is "com.spotify.client"
	end tell

	if runningApp is not {} then
		tell application "Spotify" to play
	end if
on error errString number errorNumber
	log (errString)
end try
end script