You can't open anything other than a PDF file with the app.openDoc method.
Thanks Dave for replying.
Unfortunately, I am aware that openDoc will only open PDF's. That example is what I'm trying to do theoretically.
Is there a way programmatically to do what I'm trying to do. It seems like it would be something simple, especially since you can link to swf files using the flash tool and pass flashVars to it using the built in tools. But you can only pass static values that way... which is why I'm trying to do this programmatically.
Basically, I need to open a SWF or EXE file and pass a parameter (the current page of the pdf file) to it.
Thanks again for the reply!
You can manually insert an "open file" link using the tools in Acrobat and point at anything you want, but the security settings in Acrobat and Reader will block any attempt to open executables, no matter how you make the link. Scripts cannot open non-PDF files nor can they browse the file system, again for security reasons.