Heya I wonder if anyone can help me,
I’m writing a program which downloads a file ‘http://amsn.sourceforge.net/amsn_cvs.tar.gz’ which is about 4mb and then decompresses the file, and moves the content into an application bundle. The startprogress() function works absolutely fine, but when I run this, the window freezes completely, and the progress indicator won’t start until the file has finished downloading. Have any of you applescript wizards got any ideas on how I can download the file, find out when it has finished downloading, and then do the installCVS() function?
Any ideas will be greatly appreciated,
Tom
on updateaMSN()
startprogress()
tell window "mainWindow"
set contents of text field "statusText" to "Downloading Latest CVS."
end tell
do shell script "/usr/bin/curl -L -f -# -o ~/.amsn.tar.gz http://amsn.sourceforge.net/amsn_cvs.tar.gz > /dev/null"
installCVS()
end updateaMSN