Trying to copy a snapshot of my door cam when door bell is activated to my web server and then have pushover/prowl send me an URL to that image.
What I'm looking for is a script that takes an URL image and put it on a network folder.
I have managed to copy the image to my local Indigo computer desktop (below) but not overwrite existing image and not to a network share.
Applescript:
- Code: Select all
set {tUrl, dFolder} to {"http://<user>:<psw>@<IP>:80/axis-cgi/jpg/image.cgi?camera=3", "~/Desktop/"}
set {oAStid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"}
set fName to "Image.jpg" as string
set AppleScript's text item delimiters to oAStid
do shell script ("mkdir -p " & dFolder & "; curl -A/--user-agent " & tUrl & " >> " & (dFolder & fName))
Anyone know how to do this?
Best regards, L