Hi,

This is my first post and it's a bit of a biggie. I have created a Flash based menu system which allows the user to view thumbnails of .eps files and download the individual files to their desktop for editing. I have this working flawlessly on the PC using Northcodes utilities but the MAC side is giving me a bit of a headache.

So far I have used the fscommand exec in flash to execute a applescript to do the job. My applescript knowledge was non existant until 2 days ago. I found this script and have implemented it,

Code:
tell application "Finder"
        activate
        with timeout of 1200 seconds
                copy folder "CDTITLE:test.eps" to desktop
                tell application "Finder"
                        close the front window
                end tell
        end timeout
end tell
I have created seperate applescripts for the individual .eps files.

The applescript works fine for the first file that is clicked to download but when the user clicks on another file the applescript errors and says

"Can't get window 1 of application "Finder" "

Any ideas what is causing this and is there a workaround or maybe a different script to do the same job?

Thanks,
d31irious