Thanks X, but it doesn't work for me even with a sleep of 5000, I only get the first layer, then the script stops.
Changeing the preferences to tabbed works ok but sometimes I get "Initializing Video", it would be nice if this could be avoided. It must get triggered by the descripter?