set theDMG to choose file with prompt "Please select GoogleEarthProMac-Intel.dmg file:" of type {"dmg"}
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
do shell script "pkgutil --expand /Volumes/Google\\ Earth\\ Pro\\ 7.3.2.5776/Install\\ Google\\ Earth\\ Pro\\ 7.3.2.5776.pkg ~/tmp"
do shell script "hdiutil unmount /Volumes/Google\\ Earth\\ Pro\\ 7.3.2.5776"
do shell script "cd ~/tmp/Google_Earth_Pro.pkg; cat Payload | gunzip -dc |cpio -i; ditto ~/tmp/Google_Earth_Pro.pkg/Google\\ Earth\\ Pro.app /Applications/Google\\ Earth\\ Pro.app;"
do shell script "defaults write ~/Library/Preferences/com.google.GoogleEarthPro.plist enableTips -bool NO"
do shell script "rm -rf ~/tmp"
do shell script "open -a /Applications/Google\\ Earth\\ Pro.app/Contents/MacOS/Google\\ Earth"
do shell script "rm -rf /Applications/Google\\ Earth\\ Pro.app" with administrator privileges
do shell script "rm -f ~/com.google.GoogleEarthPro.plist"
do shell script "rm -rf ~/Library/Caches/com.Google.GoogleEarthPro"
do shell script "launchctl unload -wF /Library/LaunchDaemons/com.google.keystone.daemon.plist" with administrator privileges
do shell script "rm -f /Library/LaunchDaemons/com.google.keystone.daemon.plist" with administrator privileges
do shell script "launchctl unload -wF /Library/LaunchAgents/com.google.keystone.agent.plist" with administrator privileges
do shell script "rm -f /Library/LaunchAgents/com.google.keystone.agent.plist" with administrator privileges
do shell script "launchctl unload -wF /Library/LaunchAgents/com.google.keystone.xpcservice.plist" with administrator privileges
do shell script "rm -f /Library/LaunchAgents/com.google.keystone.xpcservice.plist" with administrator privileges
do shell script "rm -rf ~/Library/Google/GoogleSoftwareUpdate"
Earth in Chrome is not a patch on Google Earth. One can't be used and the other is lacking in usabilityJust use Earth in Chrome, that's what it's optimised for. The crappy old legacy app is due to die at some point.
If you downloaded GoogleEarthProMac-Intel.dmg again, the latest version is 7.3.3.7699. So, replace 7.3.2.7692 with 7.3.3.7699 in the script.Been playing around with script from bogdanw and getting the script to run now but getting this error
"Could not open package for expansion: /Volumes/Google Earth Pro 7.3.2.7692/Install Google Earth Pro 7.3.2.7692.pkg" number 1
set theDMG to choose file with prompt "Please select GoogleEarthProMac-Intel.dmg file:" of type {"dmg"}
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
do shell script "pkgutil --expand /Volumes/Google\\ Earth\\ Pro\\ */Install\\ Google\\ Earth\\ Pro\\ *.pkg ~/tmp"
do shell script "hdiutil unmount /Volumes/Google\\ Earth\\ Pro\\ *"
do shell script "cd ~/tmp/Google_Earth_Pro.pkg; cat Payload | gunzip -dc |cpio -i; ditto ~/tmp/Google_Earth_Pro.pkg/Google\\ Earth\\ Pro.app /Applications/Google\\ Earth\\ Pro.app;"
do shell script "defaults write ~/Library/Preferences/com.google.GoogleEarthPro.plist enableTips -bool NO"
do shell script "rm -rf ~/tmp"
do shell script "open -a /Applications/Google\\ Earth\\ Pro.app/Contents/MacOS/Google\\ Earth"
try changing to auto proxyOk will give it a go, thanks
[automerge]1589033087[/automerge]
Hi bogdanw. Tried the new script but still no joy. However I decided on a whim to create a new administrator account and it opened google earth and ran immediately from applications folder, perfectly. No idea why, both accounts are identical. Now got to figure out how to move all the stuff from original account to the other without losing anything then can delete the troublesome one
Thanks or assist