Mac Open external apps through cocoa code...

dhumphries

macrumors newbie
Original poster
Apr 24, 2007
4
0
Hey,

In an app i'm developing, I need to be able to click a button and an external app is opened (like mail or iphoto etc...)

Any ideas what the code to do this is?

Cheers,
D Humphries
 

Eraserhead

macrumors G4
Nov 3, 2005
10,300
10,435
UK
You can call an applescript using NSApplescript to do it, alternatively you may be able to use NSWorkspace.
 

dhumphries

macrumors newbie
Original poster
Apr 24, 2007
4
0
You can call an applescript using NSApplescript to do it, alternatively you may be able to use NSWorkspace.
Hey, thanks for the reply. But could you explain in a bit more detail? I'm not that great at cocoa yet.

Cheers,
D Humphries