caffeinate -u -t 3600
defaults read com.apple.screensaver askForPasswordDelay
defaults write com.apple.screensaver askForPasswordDelay -int 0
srm /path/to/file
stty sane
qlmanage -p /path/to/file
caffeinate -u -t 3600
defaults read com.apple.screensaver askForPasswordDelay
defaults write com.apple.screensaver askForPasswordDelay -int 0
srm /path/to/file
stty sane
qlmanage -p /path/to/file