Code:// the declaration of the SmartExec function should only // appear once in your project function SmartExec(file) { platform = $version.slice(0, 3); if (platform == "WIN") { fscommnd("exec", file+".exe"); } else { fscommand("exec", file+".scpt"); } } // call SmartExec from your button action on (release) { SmartExec("locpdf") }




Reply With Quote