Enable at
:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
Add a Run Shell Script action that uses terminal-notifier to display a notification:
at 2 months <<< 'terminal-notifier -message "some message" -title "title"'
Replace terminal-notifier
with /Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier
if you've installed it by downloading the application bundle.
now+5 <<< 'say a'
would run a command in five seconds. You can list scheduled commands with atq
and remove them with atrm
. See man at
for more information.
If you want to display a notification only once for each folder, select pass input as arguments and add this to the script:
d=${1%/}
d=${d%/*}
c=${TMPDIR%T/}C/atnotifier
grep -x "$d" $c && exit
echo "$d" >> $c