Open PDF in Flash Cd Rom with Applescript

Hello,

I use flash for a CD Rom and I would like to open since flash PDF in “Preview”, and I saw that it is possible by an AppleScript, but which one ?

Thanks very much.

Hi Tical,

This sample script opens a PDF file with Preview.app on Mac OS X. Of course you will need to adjust the file path to your settings:


set pdffilepath to "Macintosh HD:Users:martin:Desktop:Picture 1.png"
set command to "open -a '/Applications/Preview.app' " & quoted form of POSIX path of pdffilepath
do shell script command

Thank you very much for your answer ! :slight_smile: Ok so I create this script and I put it in a folder “fscommand” ? and in Flash I put im my actionscipt like:

on (release) {
fscommand(“exec”, “preview.app”);
}

Thanks.