I have an Applescript that is called by a flash animation. The Applescript simply calls Finder to open a folder from the same disc that the Flash animation is running on. I have achieved this with the simple:
tell application "Finder"
open targetFile
end tell
The result is that the Flash application window continues to run at frontmost but Finder simply opens the window for the folder in the background, thus opening a window that is obscured by the Flash application window. The desired effect would be to have the newly opened folder window as frontmost but leaving the Flash application window as frontmost-1.
I have tried the following code:
tell application "Finder"
open targetFile
set frontmost to true
end tell
but of course this simply hides the Flash application leaving only the Finder visible, along with the newly opened folder window.
Any help would be greatly appreciated.