Cocoa:应用程序脚本文件夹

时间:2013-11-18 11:08:54

标签: objective-c cocoa applescript

我是否必须自己创建/ Users / name / Library / Scripts / Applications / app文件夹?它似乎不是自动创建的。或者是否有创建它的命令?

1 个答案:

答案 0 :(得分:1)

NSError *error;
[[NSFileManager defaultManager] createDirectoryAtPath:[@"~/Library/Scripts/Applications/app" stringByExpandingTildeInPath] withIntermediateDirectories:YES attributes:nil error:&error];