Source

'''Wrappers for the "ScriptingBrige" framework on MacOSX 10.5 or later. Thisframework provides an easy way to use the scripting functionality ofapplications ("AppleScript") from Cocoa applications.The functionality of this framework is comparable to that off "appscript",although the latter is better tuned for use in Python applications and isavailable on MacOSX 10.4 as well.These wrappers don't include documentation, please check Apple's documentionfor information on how to use this framework and PyObjC's documentationfor general tips and tricks regarding the translation between Pythonand (Objective-)C frameworks'''frompyobjc_setupimportsetup,Extensionimportossetup(min_os_level='10.5',name='pyobjc-framework-ScriptingBridge',version="3.0a1",description="Wrappers for the framework ScriptingBridge on Mac OS X",packages=["ScriptingBridge"],setup_requires=['pyobjc-core>=3.0a1',],install_requires=['pyobjc-core>=3.0a1','pyobjc-framework-Cocoa>=3.0a1',],ext_modules=[Extension("ScriptingBridge._ScriptingBridge",["Modules/_ScriptingBridge.m"],extra_link_args=["-framework","ScriptingBridge"],depends=[os.path.join('Modules',fn)forfninos.listdir('Modules')iffn.startswith('_ScriptingBridge')]),])