I have added an action for a menu item in my app. I have added an action using applescript. Now for that action to perform i w开发者_运维百科ant to add user authentication. How to do this?
See the Authorization Services Programming Guide. Pay very close attention to the methodology presented there - it's easy to authorize something you shouldn't, leading to escalated permissions for more than you intended.
精彩评论