Wait For AsyncTask to finish before executing script

view story

http://stackoverflow.com – I have searched but cannot find a working method. What I need to do is first, download a file using AsyncTask. Then I will execute a script. The thing is, the script depends on the file I'm downloading, so I need to wait for the AsyncTask to finish the download before I execute my script. I cannot find a working method for this. Sorry if I didn't search good enough. I have my code with me so I'll post it. Also, as you can probably see, I have no idea how to include a script in my app and then run it. I tried making a new folder and putting the script in it, but it doesn't work. Help on that wo (HowTos)