I've thought that mate is virtually the same as 'open -a TextMate.app', but I guess I'm wrong in this.
As when I run the following command, when there's no hello2.txt, I get this error.
open -a TextMate.app hello2.txt The file /Users/smcho/hello2.txt does not exist.
But, it's OK to run mate.
mate hello.txt --> opens the text mate.
What's the difference between the two?
I even tried
open -a TextMate.app --args hello2.txt
But this time, TextMate run with the file name 'Untitled', not 'hello2.txt'.
And this code opens the 'hello3.txt' without any problem.
[NSTask launchedTaskWithLaunchPath:@"/Applications/TextMate.app/Contents/MacOS/TextMate" arguments:[NSArray arrayWithObjects:@"hello3.txt", nil]];