Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

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,434
12,250
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.