解决方案 »

  1.   


    //直接运行
    if(![[NSWorkspace sharedWorkspace] launchApplication:@"Path Finder"])
        NSLog(@"运行失败");
    ////////////////////////////////////////////////////////////
    //带参数运行
    NSWorkspace *workspace = [NSWorkspace sharedWorkspace];
    NSURL *url = [NSURL fileURLWithPath:[workspace fullPathForApplication:@"Path Finder"]];
    //Handle url==nil
    NSError *error = nil;
    NSArray *arguments = [NSArray arrayWithObjects:@"Argument1", @"Argument2", nil];
    [workspace launchApplicationAtURL:url options:0 configuration:[NSDictionary dictionaryWithObject:arguments forKey:NSWorkspaceLaunchConfigurationArguments] error:error];
    //处理错误
      

  2.   

    是的,需要接收参数,要是还有什么问题话,我晚一点可以出个demo
      

  3.   


    多谢了,最好是给个DEMO吧。比如我在A软件输入一段字符,输完之后点确定,程序自动启动B软件,然后把A软件输的字符自动填到B软件的一个UILABLE里,然后B软件自动运行开始检测。
    这个能实现吗?全部用程序?
    需要B软件开发什么样的接口?
      

  4.   

    555555555555555555,大神在吗?
    http://download.csdn.net/detail/zhangao0086/7695315
      

  5.   

    555555555555555555,大神在吗?
    http://download.csdn.net/detail/zhangao0086/7695315多谢大神,我研究下啊。