Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: do shell script problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script problems



On Saturday, Jul 26, 2003, at 23:31 US/Pacific, Scott C. Brown 02 wrote:

one simple example is the unix program "shorten." Typing "shorten -h" in the terminal gives me the help screen. if I

do shell script "/usr/local/bin/shorten -h"

then the help screen does not go to standard output but standard error.

Something like:

do shell script "/Developer/Tools/SetFile 2>&1 &"

is often used when re-direction from stderr is desirable. There is an AppleScript tech note about this behavior which Chris Nebel often mentions. Sorry I don't have the link at hand.

I wish I knew the rhyme and reason of which tool will produce info on stderr instead of stdout though:

do shell script "/usr/local/bin/gs -h"

works fine for instance. Must be missing the Unix HIG manual...


Philip Aker
http://www.aker.ca
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.