Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikezang

macrumors 6502a
Original poster
May 22, 2010
861
9
Tokyo, Japan
I am using curl to download file, it will show a progress when I run it on terminal.

But when I run it with "do shell script curl" in AppleScript, the progress isn't shown, how can I show that progress?
 

Red Menace

macrumors 6502a
May 29, 2011
578
226
Colorado, USA
Regular AppleScript doesn't have a progress bar, you would need to use something like ASObjC Runner or roll your own using a Cocoa-AppleScript application. However you decide to implement a progress bar, one way to get the progress from curl would be to redirect the shell script output to a file and use that to update your progress bar.
 

mikezang

macrumors 6502a
Original poster
May 22, 2010
861
9
Tokyo, Japan
Thanks for you answer. I have another way to show original curl progress, but I have to get the result from AppleScript in bash shell, that result is a 2d array, how can I get it easily?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.