How long can an applescript run for?

So I want to convert/transcode several video files from one format to another (using visualhub), and after the conversion delete the original file. Everything works fine with small files where the conversion time is less than a min. But when the conversion time is greater than that, the script seems to stop and the entire task is not complete ie the original file is not deleted. i guess i should say that this task is an applescript nested in a workflow–mainly because im new to this applescript and it was the easiest way for me to manage the task.

is there an set amount of time that a script can run before it breaks completion? is this problem because im using workflow also?

any advice or thoughts is greatly appreciated.

thanks in advance,

arjungo

Duh… im an idiot:

http://developer.apple.com/documentation/applescript/Conceptual/AppleScriptLangGuide/reference/ASLR_control_statements.html#//apple_ref/doc/uid/TP40000983-CH6g-130992