• 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 & shell Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do Shell Script & shell Script


  • Subject: Re: do Shell Script & shell Script
  • From: Andrew Oliver <email@hidden>
  • Date: Mon, 23 Oct 2006 01:50:58 -0700

On Oct 22, 2006, at 11:22 PM, Kim Hunter wrote:

Does anybody know why this works ?
(i know this is a useless command, what i'm trying to do a more
complex but it gets the same error as this)

tell application "Terminal"
  do script "ls > >(ls)"
end tell

But this doesn't

do shell script "ls > >(ls)"

It might help if you better explained what you're trying to do

For example, in a terminal:

[:~] % ls > >(ls)
tcsh: Missing name for redirect.

So, given that your first example doesn't work in a terminal window, I'm not surprised the second one doesn't.

What is it you're trying to achieve?

At the end of the day the chances are the issues are related to differences between either the shell (your shell in Terminal might not be the same shell used by 'do shell script'), or some environment difference because you've customized your environment.

Andrew
:)
_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: do Shell Script & shell Script
      • From: Kim Hunter <email@hidden>
References: 
 >do Shell Script & shell Script (From: "Kim Hunter" <email@hidden>)

  • Prev by Date: Get filestructure in a variable
  • Next by Date: Re: Get filestructure in a variable
  • Previous by thread: do Shell Script & shell Script
  • Next by thread: Re: do Shell Script & shell Script
  • Index(es):
    • Date
    • Thread