0

Hi,

I am making a program to open the application TextEdit on a mac (not a specific file, just open the program). I have been researching it, but have not come across much help. I have seen that I should use Runtime or Desktop classes, but i'm not sure which to use (if those are even correct). I have OS X 10.6.8 and I would ultimatly like to use something like /Applcations/TextEdit.app. Is this possible?

Thanks in advance!

Edited by caswimmer2011

1
Contributor
1
Reply
2
Views
4 Years
Discussion Span
Last Post by caswimmer2011
0

I figured it out. For anyone who reads this wondering how to do it, this is what I have...
Desktop d = Desktop.getDesktop();
File f = new File("/Applications/TextEdit.app");
d.open(f);

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.