localize_messages()
Obtain message texts from "Localizable.strings" in the resource folder in the current bundle.
This method make GUIScriptingChecker follow usual localization way of OS X. Keys of messages are as follows.
| 10.9 or later | 10.8 or before | |
|---|---|---|
| OK button | Open System Preferences | Enable GUIScripting |
| Cancel button | Deny | Cancel |
| The title of the message dialog | GUI Scripting is required | GUI Scripting is not enabled. |
| The infomative text of the message dialog | Grant access to this application | Enable GUI Scripting ? |
me