Re: Do shell script. Type 1 error.
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.