Instead of trying to time it just right and copying off the file, what if you created a hard link to the file as soon as you know which one it is. Then you will have all the time in the world. You could wait till tomorrow if you wanted.
Comment on Re: Another YouTube Video Downloader using GtkWebkit