Reputation: 7
Please tell me a way grant for my application to modify /Library/Fonts folder as add new and remove font file. Thanks in advance.
Upvotes: 0
Views: 1185
Reputation: 3277
AuthorizationExecuteWithPrivileges()
but it is deprecated. Still it worksNSAppleScript
using "do shell script \"some script\" with administrator privileges". But it more like a hack and apple documentation says that NSAppleScript
class must be used only from the main thread of an application. But it works too, and personally I don't have any troubles with that.ServiceManagement.framework
and SMJobBless()
You can find some additional info here and here
Upvotes: 1