Timeline for Shell script failing in Automator but works if I copy/paste into Terminal
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 28, 2015 at 14:10 | answer | added | rubynorails | timeline score: 0 | |
Nov 28, 2015 at 13:31 | answer | added | Chris Page | timeline score: 1 | |
Nov 28, 2015 at 13:26 | comment | added | Chris Page |
NOTE: Quote your variable expansions unless you are certain they will never contain spaces or other characters that will be interpreted by the shell. In particular, although you hard-code INK to a known pathname without spaces, all your uses of ~ may expand to a path containing spaces.
|
|
Nov 19, 2015 at 20:47 | comment | added | Kent | Except you probably don't want to delete the original file, only the intermediate png files? | |
Nov 19, 2015 at 20:40 | comment | added | Jonathan | @user3439894 Good catch, I swapped CP with MV | |
Nov 19, 2015 at 20:05 | comment | added | user3439894 | Why in the last line of the code you posted you're copying the file to the Trash? IMO It makes no sense to copy the file to the Trash. | |
Nov 19, 2015 at 20:00 | comment | added | Jonathan | @Trellis I believe that helped fix a problem but I'm still bumping into another problem. Editing my original post now. | |
Nov 19, 2015 at 19:52 | comment | added | Jonathan | @Mark I believe 'convert' came with ImageMagick which is located at /Users/*MY USERNAME*/ImageMagick-6.9.0-3 | |
Nov 19, 2015 at 19:52 | comment | added | Trellis | Try including full path to 'convert' in your command (as suggested by Jonathan). | |
Nov 19, 2015 at 19:42 | review | First posts | |||
Nov 19, 2015 at 20:38 | |||||
Nov 19, 2015 at 19:41 | comment | added | mmmmmm | Where is convert (a guess is that you have set path only in the bash startup files) | |
Nov 19, 2015 at 19:38 | history | asked | Jonathan | CC BY-SA 3.0 |