Hi guys, I've sussed a reliable build solution for launching apps from an ANT task.
First, declare some variables which hold paths to your app: <property name="webBrowser" location="/Applications/Firefox.app/"/> <property name="flashPlayer" location="/Applications/FlashPlayer.app/"/> Then use the OSX "open" command as the executable, and pass it both the app and the file as arguments: <!-- LAUNCH HTML --> <target name="launchHTML" if="html.exists"> <echo message="Launching ${html}"/> <exec executable="open" dir="." spawn="true"> <arg line="-a ${webBrowser} ${deploy_dir}/${html}" /> </exec> </target> <!-- LAUNCH FLASH PLAYER --> <target name="launchPlayer" unless="html.exists"> <echo message="Launching ${out_swf}"/> <exec executable="open" dir="." spawn="true"> <arg line="-a ${flashPlayer} ${deploy_dir}/${out_swf}" /> </exec> </target> Of course this means you need to define an app to open the file with instead of relying on "open" to use the default app, but it works! Now we just need a better version of ASDT... Scott _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com