diff --git a/kicad/mainframe.cpp b/kicad/mainframe.cpp index ffbe93b61b..57368737c7 100644 --- a/kicad/mainframe.cpp +++ b/kicad/mainframe.cpp @@ -43,6 +43,11 @@ #include "pgm_kicad.h" #include "tree_project_frame.h" +#ifdef __WXMAC__ +#include +#include +#endif + #include "kicad.h" @@ -273,6 +278,11 @@ void KICAD_MANAGER_FRAME::Execute( wxWindow* frame, const wxString& execFile, GetChars( execFile ), GetChars( params ), pid ); PrintMsg( msg ); + +#ifdef __WXMAC__ + msg.Printf( "osascript -e 'activate application \"%s\"' ", execFile ); + system( msg.c_str() ); +#endif } else {