This Hammerspoon allows you to set automatic daily time that ejects (TimeMachine external) disk. Useful if using external disk to make backups and you are using dock.
Note
Due to OS limitations, I could not figure out a way to mount the disk automatically. This is limitation most likely caused by the encryption of the disk.
This tool requires Hammerspoon to be installed and running.
In the Terminal:
mkdir -p ~/.hammerspoon/Spoons
git clone https://github.com/jussivesa/AutoEject.spoon.git ~/.hammerspoon/Spoons/AutoEject.spoonAnd then continue with the Usage section.
After you installed AutoEject, add this to your ~/.hammerspoon/init.lua file:
local AutoEject = hs.loadSpoon("AutoEject"):start()Then reload your Hammerspoon configuration. This will start AutoEject with the default settings. To adjust the configuration, see the Configuration section below.
You can temporarily stop the spoon by calling AutoEject:stop() and then restart it by calling AutoEject:start() again.
local AutoEject = hs.loadSpoon("AutoEject"):configure{
ejectDailyAt = "14:30"
}:start()