Projector to execute commands on MAC

Hello,
I’m creating a flash projector for cd-rom, that will have an auto-launch for PC, but not for MAC.
I’ve created some commands to open a pdf and open an email client. The commands work fine on a PC, but not on MAC.

Here is my actionscript for opening the pdf:

on (release) {
fscommand(“fullscreen”, “false”)
fscommand (“exec”, “launchPdf.app”);
getURL(“apps/hootieForm.pdf”, “_blank”)
}

The launchPdf.app is an applescript I created, here is the script:

tell application “Finder”
select file “fscommand:hootieForm.pdf” of disk “Hootie Brown”
open selection
end tell

Need help to get the pdf to open on a MAC, and to open the email client on a MAC.

Thanks for your help.