I have
<supportedProfiles>extendedDesktop</supportedProfiles>
in my Application.xml file, but the following is producing this error:
Error #1034: Type Coercion failed: cannot convert flash.filesystem::File@619de81 to flash.desktop.NativeProcessStartupInfo.
<html>
<head>
<title>New Adobe AIR Project</title>
<script type="text/javascript" src="lib/air/AIRAliases.js"></script>
<script type="text/javascript" src="lib/air/AIRIntrospector.js"></script>
<script type="text/javascript" src="lib/jquery/jquery-1.4.2.js"></script>
<script>
function Init(){
var myAIRFile = new air.File('C:/Program Files (x86)/Windows NT/Accessories/Wordpad.exe');
var myProcess = new air.NativeProcess();
var myStartup = new air.NativeProcessStartupInfo();
myStartup.executable = myAIRFile;
myProcess.start(myAIRFile);
}
</script>
</head>
<body onload="Init();">
</body>
</html>
Just use myStartup where it belongs: