0

I have created an application in Flash cs3. In that application I have to open a pdf file in Acrobat Reader. I have used this to open a file

openPdf1.addEventListener
    (MouseEvent.CLICK,
    function ():void
{
    fscommand ("exec", "manual.bat");
}
);

but now when I am going to Mac OS then this code is not working, which means the file is not open

So how can I open files in Mac?

1 Answer 1

1

Mac won't execute a batch file you need to change the batch file into a shell script (at the very least) http://tldp.org/LDP/abs/html/dosbatch.html

6
  • in the batch file i use this code @echo off start foldername. so can you please tell me that how can i cornvert in to the shell script. i dont have any about it.
    – vinas
    Aug 25, 2011 at 5:25
  • can you post the batch file contents? or is that all? Aug 25, 2011 at 5:30
  • @echo off start Catalogue.pdf
    – vinas
    Aug 25, 2011 at 5:32
  • stackoverflow.com/questions/264395/… also change the extension of the manual.bat to manual.sh Aug 25, 2011 at 5:32
  • that is a contents of my batch file.
    – vinas
    Aug 25, 2011 at 5:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.