Re: Copy files with progress indicator
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