Re: do shell script vs. do script with command
Re: do shell script vs. do script with command
- Subject: Re: do shell script vs. do script with command
- From: Christopher Nebel <email@hidden>
- Date: Sun, 10 Feb 2008 20:39:55 -0800
On Feb 10, 2008, at 1:21 PM, EU - Luca Pozzato wrote:
The command is java, which is in /usr/bin, which is in the default
path for "do shell script", so that's not it. I might think that the
classpath argument needed to be a "quoted form of", but the fact that
it works in Terminal seems to indicate that that's not the problem...
You running both the script and the Terminal session as the same
user?
Yes I do, and after all the java command run and a zero kb pdf file
is rendered… , I also tried the
quoted form for the classpath but was not… I will try to test the
same script on different
computer, just to check if something messed up with the java
configuration…
Check the result of the "do shell script" command -- ideally, check
both stdout and stderr by appending "2>&1" to the end of the command.
It may be trying to tell you something informative. (Then again,
maybe not, but it's worth checking.)
--Chris Nebel
AppleScript Engineering
_______________________________________________
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