vinas
vinas

Reputation: 23

How to open file in mac using a fscommand in flash cs3

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?

Upvotes: 0

Views: 1454

Answers (1)

shaunhusain
shaunhusain

Reputation: 19748

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

Upvotes: 1

Related Questions