Open external apps through cocoa code...

Discussion in 'Mac Programming' started by dhumphries, Aug 24, 2007.

  1. macrumors newbie

    Joined:
    Apr 24, 2007
    #1
    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
     
  2. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    You can call an applescript using NSApplescript to do it, alternatively you may be able to use NSWorkspace.
     
  3. thread starter macrumors newbie

    Joined:
    Apr 24, 2007
    #3
    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
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  5. thread starter macrumors newbie

    Joined:
    Apr 24, 2007
    #5
    Ah, thanks a lot
     

Share This Page