- save the .rb file in ~/bin
- save the .plist file in ~/Library/LaunchAgents
- run
brew install terminal-notifier
terminal-notifier - change .plist parameters
- run
launchctl load ~/Library/LaunchAgents/local.timemachine.drive.plist
It will show a notification when mount is completed.