• 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: Copy files with progress indicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy files with progress indicator


  • Subject: Re: Copy files with progress indicator
  • From: Doug McNutt <email@hidden>
  • Date: Mon, 11 Jul 2005 16:54:35 -0600

At 16:22 -0400 7/11/05, Rhon Fitzwater wrote:
>I am writing a utility that should copy all the files in one  directory to another.  What I need are some suggestions on how to do  this.
>
>Is there a way I can do this with a do shell script command ( cp /tmp/ myfiles/* /Users/rfitz/myFiles/) and have a progress indicator.
>
>Having the progress indicator is a must, and it can not be  indeterminate.

cp  -v  provides an indeterminate progress report

You could get the count of files and use echo in a loop to display "file 2 of 100" or "file withaname, 2 of 100" You would make a separate call to cp for each file after making a list with something like

mylist  = `echo regexp`    [in tcsh]

<ftp://ftp.macnauchtan.com/Software/Progress/tViewCmd>
<ftp://ftp.macnauchtan.com/Software/Progress/tViewInit>

Are a couple of pieces of drivel - mostly AppleScript - I created for showing progress or curl  requests over the net. You could probably adapt them to your own shell script. They open an instance of Terminal and your copies would proceed in a fresh process running in background.
--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
 _______________________________________________
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: 
 >Copy files with progress indicator (From: Rhon Fitzwater <email@hidden>)

  • Prev by Date: what's the ascii for the escape key, and bonus question
  • Next by Date: Re: what's the ascii for the escape key, and bonus question
  • Previous by thread: Re: Copy files with progress indicator
  • Next by thread: what's the ascii for the escape key, and bonus question
  • Index(es):
    • Date
    • Thread