• 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 and stdout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script and stdout


  • Subject: Re: do shell script and stdout
  • From: Andrew Oliver <email@hidden>
  • Date: Sun, 09 Oct 2005 12:00:46 -0700

On 10/9/05 10:39 AM, "Marconi" <email@hidden> wrote:

> Lots of commands and scripts, when run in terminal, show progress
> and/or results in the terminal window. When doing these same commands
> or scripts with 'do shell script' how can the output which would be
> shown in terminal be made to appear in a progress or results dialog?

Read the tech note
http://developer.apple.com/technotes/tn2002/tn2065.html#TNTAG2

In short, the only option is to redirect the process's stdout (or stderr) to
a file and have your script read that file.

Whether or not this is feasible for you depends on the command you're
running and how it outputs its progress data.

Andrew
:)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >do shell script and stdout (From: Marconi <email@hidden>)

  • Prev by Date: Re: rounding to decimal place
  • Next by Date: Re: do shell script and stdout
  • Previous by thread: do shell script and stdout
  • Next by thread: Re: do shell script and stdout
  • Index(es):
    • Date
    • Thread