• 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. Type 1 error.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script. Type 1 error.


  • Subject: Re: Do shell script. Type 1 error.
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 10 Sep 2002 15:24:10 -0700

On Monday, September 9, 2002, at 01:38 PM, Cornwall wrote:

The following line runs fine from Terminal. It will also run (occasionally) from Script Editor without error, but it usually returns "An error of type 1 has occurred," even though it appears to do its thing correctly.

do shell script "cd /Users/cornball/Tidy;./tidy --indent 0 --wrap 100 -f errs.txt -m index.html"

When it works correctly, it returns an empty string as the result. When it errors, nothing is returned in result window. Any ideas for getting "do shell script" working on this one?

Getting an error from "do shell script", especially a small positive number like 1, usually means that the command failed with that status. Try making tidy spit out some diagnostic output -- "do shell script" will use it as the error text if a command fails.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Do shell script. Type 1 error. (From: Cornwall <email@hidden>)

  • Prev by Date: Scripting Address Book
  • Next by Date: Apple System Profiler under 10.2
  • Previous by thread: Do shell script. Type 1 error.
  • Next by thread: Need Help with merging Excel files
  • Index(es):
    • Date
    • Thread