Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #(c) Applehelpwriter 2016
- # This script toggle's the visibility of the blue location circle in Maps
- on toggleLocation(aBool)
- if aBool is "1" then
- set aBool to 0
- else
- set aBool to 1
- end if
- do shell script "defaults write com.apple.Maps ShowsUserLocation " & aBool
- do shell script "killall Maps"
- delay 1
- end toggleLocation
- try
- set _status to do shell script "defaults read com.apple.Maps ShowsUserLocation"
- on error
- set _status to "1"
- end try
- toggleLocation(_status)
- try
- tell application id "com.apple.Maps" to launch
- end try
Add Comment
Please, Sign In to add comment