• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script vs. do script with command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: do shell script vs. do script with command
      • From: "EU - Luca Pozzato" <email@hidden>
References: 
 >do shell script vs. do script with command (From: "EU - Luca Pozzato" <email@hidden>)
 >Re: do shell script vs. do script with command (From: Ed Stockly <email@hidden>)
 >Re: do shell script vs. do script with command (From: "Mark J. Reed" <email@hidden>)
 >Re: do shell script vs. do script with command (From: "EU - Luca Pozzato" <email@hidden>)

  • Prev by Date: Re: Setting properties in Address Book
  • Next by Date: Re: A date IS a date
  • Previous by thread: Re: do shell script vs. do script with command
  • Next by thread: Re: do shell script vs. do script with command
  • Index(es):
    • Date
    • Thread