fewer OSA
This commit is contained in:
parent
d076f1c594
commit
8402cd961f
2
bin/SC
2
bin/SC
@ -3,12 +3,10 @@ set -e
|
|||||||
|
|
||||||
FILENAME="/Users/tyrel/tmp/screenshot.png"
|
FILENAME="/Users/tyrel/tmp/screenshot.png"
|
||||||
screencapture -i $FILENAME
|
screencapture -i $FILENAME
|
||||||
osascript -e "display notification \"Saved $FILENAME\" with title \"Tyrel Upload\""
|
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
MD5=($(md5 -q "$FILENAME"))
|
MD5=($(md5 -q "$FILENAME"))
|
||||||
osascript -e "display notification \"Saved $MD5\" with title \"Tyrel Upload\""
|
|
||||||
fname=$MD5.png
|
fname=$MD5.png
|
||||||
scp -rp "$FILENAME" vps:/www/tyrelsouza.com/screenshots/$fname;
|
scp -rp "$FILENAME" vps:/www/tyrelsouza.com/screenshots/$fname;
|
||||||
osascript -e "display notification \"Uploaded $FILENAME to https://tyrelsouza.com/screenshots/$fname\" with title \"Tyrel Upload\""
|
osascript -e "display notification \"Uploaded $FILENAME to https://tyrelsouza.com/screenshots/$fname\" with title \"Tyrel Upload\""
|
||||||
|
Loading…
Reference in New Issue
Block a user