Enable Work Macros, for Keyboard Maestro

Wednesday, January 08, 2014

Location-based Keyboard Maestro workflows using Location Helper

tell application "Location Helper"
	set current_location to reverse geocode location
	set district to long_name of item 3 of address_components of item 1 of results of current_location
	-- The Work Macro Group UUID
	tell application "Keyboard Maestro"
		if district is "South Beach" then
			setMacroEnable "33630AFC-194D-4CCF-A4FB-13424DFB0625" with enable
			setMacroEnable "33630AFC-194D-4CCF-A4FB-13424DFB0625" without enable
		end if
	end tell
end tell