user429620
user429620

Reputation:

Cocoa: Application scripts folder

Do I have to create the /Users/name/Library/Scripts/Applications/app folder myself? It doesn't seem to be created automatically. Or is there a command to create it?

Upvotes: 1

Views: 94

Answers (1)

Parag Bafna
Parag Bafna

Reputation: 22930

Yes.

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

Upvotes: 1

Related Questions