FileDocCategorySizeDatePackage
OSXOpenHack.javaAPI DocExample674Mon Jan 09 11:02:00 GMT 2006None

OSXOpenHack

public class OSXOpenHack extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        Runtime rt = Runtime.getRuntime();
        //rt.exec("open notes.txt");
        //rt.exec("open .");
        //rt.exec("open http://www.yahoo.com/");
        
        //String cmd = "open -a Microsoft Word notes.txt";
        /*
        String[] cmd = {
            "open", 
            "-a", 
            "Microsoft Word",
            "notes.txt"
            };
            
        for(int i=0; i<cmd.length; i++) {
            System.out.println(cmd[i]);
        }
        rt.exec(cmd);
        */