Upload to FTP and Progress bars

Hi

I’m doing an App that scales down larger images and uploads them via FTP to a server.
so far, i’m on a good way (considering that I didn’t know you can make Apps with AppleScript and xCode) :wink:

I think I would have to upload the scaled down images with the terminal using the terminal command:

I have to questions thou.

is it possible to use a progressbar to display, well, the progress of the upload?

and if its not possible (what i assume since it is a terminal command), how can i set the value of a progressbar manually?
(i so far just found out how to change the minimum or maximum value, but was not able to change the current value).