Screencapture shell script failure...noob
<Error>: CGImageDestinationCreate destination parameter is nil\n
screencapture: cannot write file to intended destination, ~/Desktop/testCap2.jpg
here's the shell script. I'm sure this is something obvious, but I'm looking at this through noob glasses! 😉 Any help would be greatly appreciated!
TIA, Vince
G5 Quad, 10.5.2
-----------
shell script below
-----------
#!/bin/sh
myPath="~/Desktop/"
fileName="screencapture"
mycount=`cat ~/Desktop/testCount.txt`
mycount=`expr $mycount + 1`
echo $mycount > ~/Desktop/testCount.txt
fileExt=".jpg"
filePath="$myPath$fileName$mycount$fileExt"
screencapture -mx -tjpeg $filePath
G5 Quad, Mac OS X (10.5.2)