I'm trying to run a shell script wherein I run the screencapture command, do a couple of modifications like file renaming, moving to Dropbox, shortening the url etc and then growling the url.
Problem is, after running the "screencapture" terminal command, following commands aren't executed like so:
screencapture -i ~/Dropbox/Public/ScreenShot_TestScreenShot1.png
# below doesn't get executed
echo "your file is at ~/Dropbox/Public/ScreenShot_TestScreenShot1.png"
(For the curious: The shell script is triggered from from Alfred)
Anyway of returning to the shell script after running the screencapture command?
echoisn't being run? And that the Terminal window that Alfred pops up just isn't being destroyed before you can see the echo? Try adding asleep 60mto the end of the script after the echo command to keep transient windows alive on the screen. – Ian C.♦ Mar 1 '12 at 14:27