Posted on 04-19-2016 04:24 AM
A lot of our users complain about slow machines and have cluttered desktops, generally full of screen shots. I composed the following to send all screenshots to a separate folder and redirect the screen capture app for future screenshots taken.
The script is:
"#!/bin/bash
mkdir -p /temp1
touch /temp1/log.log
whoami >> /temp1/log.log
ls -l /dev/console >> /temp1/log.log
echo $3 >> /temp1/log.log
CUSER=$3
CUHOME="/Users/$3"
echo "CUSER is $CUSER and CUHOME is $CUHOME" >> /temp1/log.log
mkdir -p $CUHOME/Screenshots
sleep 1
sudo chown -R $CUSER $CUHOME/Screenshots
mv -f $CUHOME/Desktop/Screen* $CUHOME/Screenshots/
touch $CUHOME/.screen.sh
sudo -s -u $CUSER defaults write com.apple.screencapture location $CUHOME/Screenshots
killall SystemUIServer
exit 0"
Does anyone think this is helpful?
Posted on 04-20-2016 05:12 AM
Script aside it's certainly a method I use personally. Well, not exactly. I use Dropbox as the location for all my screenshots (built in feature). As for our users, we (IT) would probably attempt to educate the users about the issue and probably dedicate a couple of blog posts to it. After all, there are LOTs of things they can use to fill their desktop.
That said, educating users is hard so I can completely understand the desire to just "do it for them". Regardless, thanks for throwing this up there!
Posted on 04-21-2016 03:10 AM
@cdwyersg & @Chris_Hafner This is something we've had in our self service for a while.
Folks like it. :)
Posted on 04-21-2016 05:47 AM
Nice! Perhaps we will give it a try.