Twitter Updates

Saturday 10 January 2009

Mac Launching GUI apps from the command line

So I am working on my first sourceforge project (FileExplorer), which is a file browser. I really miss the ability to cut files and when pasting I want the contents of folders to be merged not just over written. That aside I have been trying to figure out how to trigger the operating systems default file handler.

The answer found here was quite simple, just call;
$ open somefile.xyz

it also shows away that you can force opening the file with a different application.
$ open -a Smultron someTextFile.txt
This will come in useful for right-click open with menus.

No comments: