Hello, all. I'm trying to run a gifsicle script to resize gifs that I need to make smaller. While the script works fine in Terminal directly, I get a "Permission denied" error when I try it in this Applescript:
tell application "Terminal"
try
do shell script "gifsicle --scale 0.8 -i /Users/pp/PostHere/startfile.gif > outputfile.gif"
on error
say "got that gifsicle error"
end try
end tell
end if
So, I thought, I'd try running the shell script command in an Execute Shell Script command through KM, but I end up with an error, which was
/var/folders/[and a bunch of garbage I couldn't read]
I can get the script to work if I use the Execute a Script in Terminal (from here Execute a Script in Terminal), which is like opening it and typing it, but this is less satisfying since I want to make a script that runs more reliably and elegantly.
Can anyone tell me why I can't run gifsicle commands from an Applescript (the preferred method), or from a KM shell command (a fallback position)? Thanks!