Re: Shell script fails to return desired results
Re: Shell script fails to return desired results
- Subject: Re: Shell script fails to return desired results
- From: Doug McNutt <email@hidden>
- Date: Mon, 27 Aug 2007 13:36:25 -0600
At 14:56 -0400 8/27/07, Mark J. Reed wrote:
>On 8/27/07, Rick Dwyer <email@hidden> wrote:
> > tell current application
>> do shell script "curl -P 192.168.80.113 -v -T /TempUploads/
>> testfile.zip -u username:pass ftp://ftp.remotedirectory.com/"
> > end tell
>
>the output of curl -v will come back to you. There's currently no
>way that I know of in AppleScript to launch a coroutine, which would
>let you get the output of the command in real time line by line. I
>would think you could do it with named pipes and AS file I/O, but as I
>recall that doesn't work for some reason.
Have a look at
<ftp://ftp.macnauchtan.com/Software/Progress/tView.text> 4 kB ReadMe
<ftp://ftp.macnauchtan.com/Software/Progress/tViewInit> 2 kB
<ftp://ftp.macnauchtan.com/Software/Progress/tViewCmd> 2 kB
They are routines I use with curl that invoke a named Terminal window and pass requests, sometimes from AppleScript, to Terminal.app instead of a new instance of bash which is what do-shell script does.
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden