start new:
tmux
start new with session name:
tmux new -s myname
-- | |
-- Applescript to monitor age of last arq backup | |
-- and send alert to notification center if too old | |
-- | |
set arqF to (path to current user folder) & "Library:Arq:lastsV2.dat" as string | |
set latest to arqF as alias | |
set mod_date to modification date of (info for latest) | |
set file_age to round (((current date) - mod_date) / days) | |
log "most recent Arq backup " & file_age & " days old " & arqF |
-- | |
-- Applescript to monitor age of last time machine backup | |
-- and send alert to notification center if too old | |
-- | |
set tmLatest to do shell script "/usr/bin/tmutil latestbackup" | |
set latest to POSIX file tmLatest | |
set mod_date to modification date of (info for latest) | |
set file_age to round (((current date) - mod_date) / days) | |
log "most recent TM backup " & file_age & " days old" |
--Two changes to be made before you use this script | |
--1. Find this line in the script below and change it to the path to your Dropbox Public folder. | |
--Change pubfolder to the path of your dropbox public folder (ex. /Users/John/Dropbox/Public/) | |
--2. Observe one of your Dropbox URLs and you will notice that there are some numbers in those URLs. That is your Dropbox id. | |
--Find this line in the script below and change it to your Dropbox id instead of 123456 | |
--set dropboxID to 123456 | |
------------------------------------------------------------------- | |
--How to use? | |
--Bring this script in LaunchBar, press space and type the name that you would like to give to that screenshot and press return | |
--e.g. myname |