Do shell script vs terminal discrepancy
Do shell script vs terminal discrepancy
- Subject: Do shell script vs terminal discrepancy
- From: Paul Skinner <email@hidden>
- Date: Thu, 03 Dec 2009 16:07:59 -0500
Hi,
I have a do shell script command that is returning "" while the same
command, when run in the terminal, returns a value.
In applescript:
set ssc to "convert " & quoted form of POSIX path of thumbPath & " -
scale 3x3\\! -compress none -depth 8 ppm:- | sed '/^#/d' | tail -n
+4"
ssc
-->"convert '/Users/paul/Pictures/iPhoto Library/Data/2009/textures/
b6leather_skin015.jpg' -scale 3x3\! -compress none -depth 8 ppm:-
| sed '/^#/d' | tail -n +4"
set d to do shell script ssc
-->""
in Terminal:
>convert '/Users/paul/Pictures/iPhoto Library/Data/2009/textures/
b6leather_skin015.jpg' -scale 3x3\! -compress none -depth 8 ppm:-
| sed '/^#/d' | tail -n +4
-->255 207 55 25 210 60 28 202 55 25 209 57 26 212 61 29 203 57 27 204
55 25 206 59 29 194 53 24
Does anyone know why I'm seeing this discrepancy in behavior?
Thanks,
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden