Nickkk
Nickkk

Reputation: 2647

Accessing user scripts directory in Mac OS X Lion

I want my app to be able to execute some user scripts which can be installed in the app-specific user scripts directory (like ~/Library/Application Scripts/appbundleidentifier), but [[NSFileManager defaultManager] URLForDirectory:NSApplicationScriptsDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:&error] only works in Mountain Lion as NSApplicationScriptsDirectory was introduced with Mountain Lion. How can I find this directory under Mac OS X Lion? The app is sandboxed, so hardcoding the path is not an option.

Upvotes: 2

Views: 191

Answers (1)

Mike Abdullah
Mike Abdullah

Reputation: 15003

I believe flat-out this feature doesn't exist in 10.7, so the folder doesn't exist, so you can't "find" it.

Upvotes: 1

Related Questions