Apple Script working fine but with Objective C Library not getting expected out put

吃可爱长大的小学妹 提交于 2019-11-28 02:23:38

I just removed #command. it is working now

  -(void)executeAppleScript{
    NSDictionary* errorDict;
    NSAppleEventDescriptor* returnDescriptor = NULL;

    NSAppleScript* scriptObject = [[NSAppleScript alloc] initWithSource:
                           @"do shell script \"chmod 777 /Library/ColorSync/Profiles\" with administrator privileges"];


    returnDescriptor = [scriptObject executeAndReturnError: &errorDict];
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!